Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci4 OAuth2 ACCESS_TOKEN invalid #1052

Open
Revitando opened this issue Aug 21, 2023 · 0 comments
Open

Ci4 OAuth2 ACCESS_TOKEN invalid #1052

Revitando opened this issue Aug 21, 2023 · 0 comments

Comments

@Revitando
Copy link

Hey,

im creating a website with an Ci4 RESTFul backend which is using your oauth2-server-php package.
A few days ago everything seemed to work quite fine but currently i have the following problem:

When I recieve my bearer token at lets say 8:00AM:
{ "access_token": "b3aaee2354629f4b4035d63acdc0ce7be29a0210", "expires_in": 3600, "token_type": "Bearer", "scope": "app", "refresh_token": "3bac20f4ee327633f169e322343c99a008727fca" }
I would assume that the token would be valid at least until 9:00 AM.
But if i take a look at the database, the token is valid until 8:00 AM.

Even if i change the "expires" to 9:00AM I recieve:
{ "error": "invalid_token", "error_description": "The access token provided is invalid" }

I tried to change the expires_in in "vendor/bshaffer/src/ResponseType/AccessToken" to "43200" (12h) but the token still expires_in 3600.

Coukd you tell me what im missing here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant