I was able to integrate Spring Boot and Spring Security SAML by using the @ImportResource annotation.
Now, I'd like to go on as follows:
- the user selects an IdP [DONE].
- it performs the login (successful) [DONE].
- the SP obtains user data (by parsing the SAMLCredential object) [DONE].
- the webapp had to check if the userID (e.g email) retrieved via SAML exists in my own DB.
- a) If yes, the webapp reads from the DB the role and sets related privileges.
b) If no, the webapp had to perform a redirect to a sign-up page, in order to insert the user into the system.
Make it sense perform the points 4 and 5 by using a UserDetailsService implementation or have I to setup the security context defining authentication providers, filters, etc?