@xfrocks, thanks for this great add-on.
I downloaded the latest beta from your site (
Xfrocks-Api-2.0.1_Beta_1) to play with it using Postman to see if I can use it instead of Xenforo API since Authorization code is the most secure way to authenticate a user to the game as I have done successfully with an another provider.
The Oauth2 Authorization code works fine from authorize step to retrieve the token to access protected resource except when I try to use the token to access the API, I have the following error:
Code:
{
"status": "error",
"errors": [
"You do not have permission to view this page or perform this action."
]
}
The Url I call is :
http://localhost/community/api/users/me
Could you pinpoint where to look for?
I'm testing against
Xenforo 2.1.5a version.
There is minor thing like not displaying the scope at the authorize screen and the auto authorize issue to display the the authorize screen but that's okay as long as it gets the token back.
Attach files so you can try to reproduce it!
Any help is appreciated!
EDIT: Please ignore my request, I made a patch in the beta code to go through the exception to get the response back. Now I can go ahead to work with custom client code to use this cool add-on to authenticate player to the poker game.
UPDATE: You can see a demo of it here: Oauth2 Authorization code using XFRocks bdAPI