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

expires_in in OAuth2 Token is too huge #38

Open
YoitoFes opened this issue Aug 11, 2022 · 0 comments · May be fixed by #39
Open

expires_in in OAuth2 Token is too huge #38

YoitoFes opened this issue Aug 11, 2022 · 0 comments · May be fixed by #39

Comments

@YoitoFes
Copy link

YoitoFes commented Aug 11, 2022

According to RFC6749, expires_in in OAuth2 Token is the lifetime in seconds of the access token.

But mockoidc set MockOIDC.AccessTTL directly to expires_in, making expires_in huge; e.g. if AccessTTL = 10 * time.Seconds (1000000000 int64), expires_in becomes 10000000000 in seconds.

@YoitoFes YoitoFes linked a pull request Aug 11, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant