Error during OAuth2 authorization

Maniaplanet public API, ManiaConnect system and the open source PHP SDK.

Moderator: NADEO

Post Reply
User avatar
Chris92
Translator
Translator
Posts: 911
Joined: 15 Jun 2010, 13:22
Location: Vilshofen, Germany
Contact:

Error during OAuth2 authorization

Post by Chris92 » 01 Jun 2017, 08:14

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
Last edited by Chris92 on 01 Jun 2017, 10:48, edited 2 times in total.
Image

Maintainer of AdminServ - Follow @AdminServ on Twitter!
Check out my Personal Twitter account!

User avatar
magnetik
Nadeo
Nadeo
Posts: 1606
Joined: 01 Feb 2012, 19:13
Location: Paris
Contact:

Re: Error during OAuth2 authorization

Post by magnetik » 01 Jun 2017, 08:22

Hey,

What's the grant_type value of the parameter you are sending ?
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!

User avatar
magnetik
Nadeo
Nadeo
Posts: 1606
Joined: 01 Feb 2012, 19:13
Location: Paris
Contact:

Re: Error during OAuth2 authorization

Post by magnetik » 01 Jun 2017, 08:29

I just tested with https://github.com/maniaplanet/oauth2-maniaplanet without trouble.
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!

User avatar
Chris92
Translator
Translator
Posts: 911
Joined: 15 Jun 2010, 13:22
Location: Vilshofen, Germany
Contact:

Re: Error during OAuth2 authorization

Post by Chris92 » 01 Jun 2017, 08:56

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.
Image

Maintainer of AdminServ - Follow @AdminServ on Twitter!
Check out my Personal Twitter account!

User avatar
Chris92
Translator
Translator
Posts: 911
Joined: 15 Jun 2010, 13:22
Location: Vilshofen, Germany
Contact:

Error during OAuth2 authorization

Post by Chris92 » 01 Jun 2017, 10:47

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.
Image

Maintainer of AdminServ - Follow @AdminServ on Twitter!
Check out my Personal Twitter account!

User avatar
magnetik
Nadeo
Nadeo
Posts: 1606
Joined: 01 Feb 2012, 19:13
Location: Paris
Contact:

Re: Error during OAuth2 authorization

Post by magnetik » 01 Jun 2017, 14:25

There was something wrong on our side. It should be okay now :thumbsup:
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!

User avatar
Chris92
Translator
Translator
Posts: 911
Joined: 15 Jun 2010, 13:22
Location: Vilshofen, Germany
Contact:

Re: Error during OAuth2 authorization

Post by Chris92 » 01 Jun 2017, 18:03

Merci beaucoup, magnetik, for the quick fix on this issue ^_^
Image

Maintainer of AdminServ - Follow @AdminServ on Twitter!
Check out my Personal Twitter account!

Post Reply

Return to “Maniaplanet Web Services”

Who is online

Users browsing this forum: No registered users and 2 guests