Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Programmatically calling SAML

Avatar

Level 2

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
Community Advisor

@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
Community Advisor

@saibul2 

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