Dealing with expirations and revocations #189
-
Hi. I wanted to ask about some details of how it works before deciding whether to go with this way of authentication. Let's take a simple scenario as an example. I have a Next.js app that sits behind Traefik with this middleware. The app has a single page containing a single button that performs a server action when clicked. So there are two requests involved:
I get how this middleware works at first when everything is fresh and new, but I'm interested in what happens when things start to expire or get revoked. I would like to prevent surprises for users like sudden redirects in the middle of doing something. The questions I have in my mind at the moment:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @spietras, The basic login flow is documented here: So in your scenario the following will happen:
So let me answer your questions one by one:
As a workaround for 3. it may be possible to use two separate middlewares with different |
Beta Was this translation helpful? Give feedback.
Hi @spietras,
all excellent questions 👍
The basic login flow is documented here:
https://traefik-oidc-auth.sevensolutions.cc/docs/getting-started/how-it-works
So in your scenario the following will happen:
So it redirects you to the IDP and once you're logged in, it forwards the request upstream.
So let me answer your questions one by one:
Yes exactly. The cookie is created when your b…