mirror of
https://github.com/floci-io/floci.git
synced 2026-11-28 08:09:43 -05:00
The tokens an authorization code redeems for were stamped with the time of the redemption, so an authorize that a managed login session let skip the form reported a fresh sign-in, and so did every refresh of those tokens. The managed login session now records when the user signed in, the authorization code carries that time (or the identity provider callback's for federated sign-in), and the token endpoint mints with it. Refresh tokens carry it too, so REFRESH_TOKEN_AUTH, GetTokensFromRefreshToken and the token endpoint's refresh_token grant keep the original auth_time, as AWS documents: "Refreshing a token doesn't reset the auth_time claim." The sign-in time is a tagged auth_time= field after the family id, ahead of the scope field. Refresh tokens minted before keep working and fall back to the time they were issued. A pre token generation trigger can no longer suppress or override auth_time, which AWS lists among the claims a trigger cannot add, modify or suppress.