This repository has been archived by the owner on Nov 29, 2022. It is now read-only.
SES-69: Data returned from SAMLUserDetailsService and UserDetailsService put into different fields of the Authentication object #31
Labels
in: core
An issue in spring-security-saml-core
type: bug
A general bug
type: jira
An issue that was migrated from JIRA
Milestone
Mandus Elfving (Migrated from SES-69) said:
We are using SAML for our production environment and username & password authentication for development. In production we an implementation of SAMLUserDetailsService to get information about the user and in development we use the corresponding functionality by implementing UserDetailsService (both return the same kind of object with information about the user). However the result returned from these two services is put in to different fields of the Authentication object depending on the authentication scheme used. When using SAML the object is put in to the details field and when using username & password authentication it is put into the principal field.
This makes it hard to have the same code to get at the object returned from the SAMLUserDetailsService/UserDetailsService as we have to know which authentication scheme was used. My personal opinion is that the SAML module should behave as the username & password authentication and put the data in the principal field.
The text was updated successfully, but these errors were encountered: