leonhardt
05/21/2025, 8:01 PMdave
05/22/2025, 11:20 AMfun assignToken(request: Request, redirect: Response, accessToken: AccessToken, idToken: IdToken? = null): Response
fun retrieveToken(request: Request): AccessToken?
... which in a session-based environment should give you everything you need to make it work.
We've done this securely before, creating a JWT and setting it as a cookie in the "assignToken" functionleonhardt
05/22/2025, 6:04 PMassignToken
. What I was really hoping for was a consistent pattern across all the assign*
methods so I could keep CSRF, nonce, originalUri, and PKCE values server-side in the same session, rather than managing them individually with separate cookies.
Is there a particular reason these methods (assignCsrf
, assignNonce
, assignOriginalUri
, assignPkce
) don't also accept the request, like assignToken
does? Maybe there's a design or security consideration I'm missing, but my plan was to avoid client-side storage for all these values.dave
05/25/2025, 9:52 AM