Hi all,
Let us say my site is integrated with SSO IDP Okta.
When use logs in, IDP's login page appears and IDP collects user id and password.
IDP authenticates and sends only token to AEM.
1. From then for each of the requests from that client how the token is utilized?
2. Where is the token stored or passed?
3. How is the token mapped to the user?
For that user AEM/IDP should not ask for user name and password.
Appreciate all your responses,
Thanks,
RK.
Views
Replies
Total Likes
Hi RK,
Once Okta authenticates the user, AEM only uses the token during that initial handshake. After that, AEM creates its own session and sets a secure login-token cookie in the browser.
That cookie is sent with every request, so AEM knows the user is logged in — no need to go back to Okta each time.
The SAML/OIDC token from Okta usually carries attributes like username or groups, which AEM maps to a local user (created on the fly if needed).
So in short:
Thanks @BrianKasingli
This reply is really helpful.
What if the user blocks cookies?
Of course this query is valid for normal AEM Authentication also (without an IDP).
Here also I guess AEM session is cookie based.
Thanks,
RK.
Views
Replies
Total Likes
Hey RK,
AEM relies on a cookie (login-token) to keep a user logged in, whether the login comes through Okta SSO or directly with AEM credentials. If a user blocks cookies, AEM can still process the initial login, but every new request will look like a fresh session because there’s no cookie to prove the user is authenticated. That means the user will be asked to log in again and again.
AEM authentication is cookie‑based, and blocking cookies prevents a persistent login session. This applies both with an IDP like Okta and with AEM’s native login.
Thanks @BrianKasingli .
Now this subject is very clear to me.
No amount of appreciation is enough to describe my gratitude.
Unfortunately, I do not find the button to mark this as Correct answer.
Thanks,
RK.
Views
Replies
Total Likes
Thats okay, thank you for trying to mark the correct answer 🙂
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies