diff --git a/saml/saml-protocol/src/main/java/org/keycloak/protocol/saml/SALM2LoginResponseBuilder.java b/saml/saml-protocol/src/main/java/org/keycloak/protocol/saml/SALM2LoginResponseBuilder.java index 0b373793bd..2bf82ae6fd 100755 --- a/saml/saml-protocol/src/main/java/org/keycloak/protocol/saml/SALM2LoginResponseBuilder.java +++ b/saml/saml-protocol/src/main/java/org/keycloak/protocol/saml/SALM2LoginResponseBuilder.java @@ -38,7 +38,8 @@ public class SALM2LoginResponseBuilder extends SAML2BindingBuilder roles = new LinkedList(); - protected String userPrincipal; + protected String nameId; + protected String nameIdFormat; protected boolean multiValuedRoles; protected boolean disableAuthnStatement; protected String requestID; @@ -88,8 +89,9 @@ public class SALM2LoginResponseBuilder extends SAML2BindingBuilder - urn:oasis:names:tc:SAML:2.0:nameid-format:transient - + urn:oasis:names:tc:SAML:2.0:nameid-format:transient + urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified + urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress +