Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

Programmatically calling SAML

Avatar

Level 1

we have a usecase to do dynmically check the SAML authentication for a page. The page will get dynamic assetpath from the selector from url. based on the asset path we need to do saml authentication.

 

We dont want to add the path in saml config in configMgr because the page will act as public for anonymous user and sometime not

 

we do saml authentication for azure and below is the format.

https://login.microsoftonline.com/xxxxxxxxxxxxxxxxxxxx/saml2

 

what is the better way to handle.

Any sample java code to do saml authentication would be appreciated.

 

 

1 Accepted Solution

Avatar

Correct answer by
Level 8

@saibul2 

You can try to create a custom authentication handler that extends the default SAML authentication handler.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 8

@saibul2 

You can try to create a custom authentication handler that extends the default SAML authentication handler.