Expand my Community achievements bar.

AEM as Cloud | Protect routes with Okta Authentication


Level 1

I have to implement Okta authentication for certain paths of my application. It's not author authentication, it's user authentication. To be able to access certain path of my website the user has to be authenticated with Okta. And the okta authentication is not SAML, it's the PCKE flow where tokens have to be refreshed every 5 min, etc..

What would be the best way to do it? I initially thought of a Sling Filter to validate on the server side if the user is authenticated and then a client lib with the Okta Auth JS which would handle the token refresh and everything Okta related.  

Is there a better way of doing it that I'm not aware of?

Thanks for any help


Topics help categorize Community content and increase your ability to discover relevant content.

0 Replies