Hello All,
I am trying to connect to bitBucket API using C# grant_type=authorization_code.
With HttpClient Post Message i am sending the folloing data
{"client_id", "xxx"},
{"client_secret", "xxx"},
{"redirect_uri", "http://www.google.com"},
{"code", "xxx"},
{"grant_type", "authorization_code"}
The response i am getting is {"error_description": "Unsupported grant type: None", "error": "invalid_grant"}
please help.
I've solved the issue and i hope it will help someone.
BitBucket is not expecting JSon but FormUrl so simply use FormUrlEncodedContent
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.