Skip to content

Conversation

YoitoFes
Copy link

@YoitoFes 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), expires_in becomes 10000000000 in seconds.

Fix it.

Close #38

Signed-off-by: Naoto Kobayashi [email protected]

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

- https://www.rfc-editor.org/rfc/rfc6749#section-4.2.2

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

Fix it.

Signed-off-by: Naoto Kobayashi <[email protected]>
@muety
Copy link

muety commented Oct 11, 2025

Came across the same issue. Would love to get this merged!

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 this pull request may close these issues.

expires_in in OAuth2 Token is too huge

2 participants