Page 1 of 1

Error during OAuth2 authorization

Posted: 01 Jun 2017, 08:14
by Chris92
Hello there,
something with the Oauth2 for Maniaplanet4 seems to be broken.

It worked fine a few days ago, I cannot tell exactly when it broke but now I'm suddenly getting either this error...
Image

And that's with a request to http://www.maniaplanet.com/login/oauth2/access_token will all the parameters required according to this

Or, when it decides to actually grant me an access_token, I get a 403 Forbidden error for http://www.maniaplanet.com/webservices/me

Re: Error during OAuth2 authorization

Posted: 01 Jun 2017, 08:22
by magnetik
Hey,

What's the grant_type value of the parameter you are sending ?

Re: Error during OAuth2 authorization

Posted: 01 Jun 2017, 08:29
by magnetik
I just tested with https://github.com/maniaplanet/oauth2-maniaplanet without trouble.

Re: Error during OAuth2 authorization

Posted: 01 Jun 2017, 08:56
by Chris92
Using "authorization_code"

Funnily enough, I haven't changed anything about my verification code in the past 1.5 weeks and it was working just fine.

Edit: Seems to be working fine now, issue was on my end, sorry to bother you magnetik.

Error during OAuth2 authorization

Posted: 01 Jun 2017, 10:47
by Chris92
Actually, I'm still from time to time getting the 403 Forbidden after I receive the authorization token and sometimes I get the 400 Bad Request http error when trying to POST to /login/oauth2/access_token.
It's really weird honestly.

Re: Error during OAuth2 authorization

Posted: 01 Jun 2017, 14:25
by magnetik
There was something wrong on our side. It should be okay now :thumbsup:

Re: Error during OAuth2 authorization

Posted: 01 Jun 2017, 18:03
by Chris92
Merci beaucoup, magnetik, for the quick fix on this issue ^_^