I am attempting to connect with a page. Here are the steps:
Generate a client_credential token - SUCCESS
access the guest api pages - SUCCESS
if the user is valid and there is no need for password reset - SUCCESS
generate a new access token “password_credentials” - SUCCESS
use that token to access [GET request] : api/account_info - FAILS
at stage 5 the $u->isRegistered() returns null when the request is being sent by the Mobile application (iOS). but the same request using the same token results in appropriate response when it’s sent from POSTMAN.
Please help with above request. Also, in the code, how can I output the token that is being sent (just to verify).
Thank You
I think I have read your other post and I did try adding these lines but didn’t have success with that. I will try again.
I get two different types of errors. One is
Exception Occurred: /Source/updates/concrete-cms-9.2.4/concrete/vendor/league/oauth2-server/src/Exception/OAuthServerException.php:243 The resource owner or authorization server denied the request. (9)
and in the other type of error, I try to access user object but it’s set to null. So I would assume the token verification have failed.