Showing results for 
Search instead for 
Did you mean: 
New Member

Microsoft Online OAuth2 Token cannot handle Content-Type with given Charset


i am trying to get the oauth token via post to


If i try to post with given charset, does not matter what charset, i always get an error and cannot get the token!

This should be fixed! Microsoft should be able to handle given charset inside the header. 


curl --request POST \ --url \ --header 'Accept: */*' \ --header 'Content-Type: application/x-www-form-urlencoded;charset="UTF-8"' \ --header 'Postman-Token: 99b8afdb-b4fc-4cfc-812e-059a256ef6d2' \ --header 'cache-control: no-cache' \ --data 'grant_type=password&client_id=abc&resource=abc&scope=openid&username=abc&password=abc'


A post like this should work! But it does not! I get invalid_request! So please fix this issue, so that given charset parameter are excepted when posting to get microsoft token.


Helpful resources

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.


Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (4,507)