@eventuras/fides-auth-next@0.5.0
Minor Changes
-
fa9de74: RP-initiated logout: send
id_token_hint.Tokens.idTokennow holds the raw ID token — populated bybuildSessionFromTokens,
kept fresh byrefreshSession, and stored in its ownsession_itcookie so no cookie
has to carry two large JWTs.readIdTokenreads it independently of session validity,
since logout needs the hint after the access token has expired.buildOidcLogoutUrl(oauthConfig, options)acceptsidTokenHint,state,
logoutHintandincludeClientIdalongsidepostLogoutRedirectUri. A string second
argument still meanspostLogoutRedirectUri, and it still returnsnullwhen the
provider advertises noend_session_endpoint.New
handleOidcLogouthandler in@eventuras/fides-auth/server—POST-only by
default and same-origin checked viaSec-Fetch-Site/Origin— wrapped for Next.js at
@eventuras/fides-auth-next/oidc-logout. See
packages/fides-auth/docs/rp-initiated-logout.mdfor the full parameter set, where
the ID token is stored, and whyclient_idis still sent.Also fixes the
./oidc-callbackand./oidc-loginsubpath exports in
@eventuras/fides-auth-next, which pointed at files the build never emitted.persistSessionnow size-checks every cookie value before writing any of them.
Previously a value that exceeded the browser limit threw part-way through, leaving the
new session cookie next to the previous user's tokens.