pateluday07 / saml-sso-and-slo-demo-idp-azure-sp-springboot

This project is to demonstrate how we can implement Single Sign-On (SSO) and Single Logout (SLO), by taking advantage of these resources: 1. Azure AD (Active Directory) as IDP 2. Springboot as SP 3. SAML (Security Assertion Markup Language) as SSO & SLO METHOD
34 stars 27 forks source link

Current authentication instance from security context is null #8

Closed dacaruso closed 6 days ago

dacaruso commented 1 year ago

Hi, after I login successfully with SSO the application doesn't go forward to the landing page, but it loops on the discovery page because this instruction Authentication auth = SecurityContextHolder.getContext().getAuthentication(); returns always null. Could you give me some ideas about what could be the cause of this behaviour ? TIA D.