AEM SAML Login URL | Community
Skip to main content
New Member
March 6, 2024

AEM SAML Login URL

  • March 6, 2024
  • 4 replies
  • 2108 views

Hello,
I am working on SAML Implementation. It seems to be working fine when I hit any Authentication Required page.
It took to my IDP and after the back login was performed.

But as per the UI there is a login button. If I click on the login button I need to send it to IDP and after back to AEM it can be redirected to a default page.
How can I achieve this?

Note:
For logout, I found the URL /system/sling/logout.html?resource=/content/aem-demo
where based on resource parameters the exact SAML configuration is picked up. I am expecting something like this for login.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

SureshDhulipudi
Community Advisor
Community Advisor
March 6, 2024
SadyRifatAuthor
New Member
March 6, 2024

Hello @sureshdhulipudi ,

Thanks for your reply. But from this thread and each link on the thread I didn't get my answer. (or I missed)
Can you make it easy for me if you already found the login link?

sherinregi-1
Community Advisor
Community Advisor
March 6, 2024

Hi @sadyrifat 

If you are fine with redirecting to a default configured page i think configuring the Default Redirect on SAML 2.0 authentication handler will help . 

 

 

But if you want to land the user back to the page he started before login , you can think of keeping the targetURL in a cookie and on the saml post processor can redirect the user to the saved targetURL.

 

Hope this helps

 

kautuk_sahni
Community Manager
Community Manager
March 7, 2024

@sadyrifat Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni
Level 2
March 27, 2024

Hi @kautuk_sahni Is there any URL that can be configured to invoke SAML Authentication ? On page load the SAML Authentication gets invoked, but how do we invoke on click of login ? Any pointers will help on this.

Level 2
March 27, 2024

Hi @sadyrifat How did /system/sling/logout.html work ? I tried same approach but it did not work for me ? Did you configure anything additionally ?