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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.