-
Notifications
You must be signed in to change notification settings - Fork 4
Description
We are encountering an issue when no account exists in the user store.
In that case the next call is made by SAML2Node.java to update the sharedstate:
// If it wasn't then setup attributes and go to No Account outcome.
return setSessionProperties(
Action.goTo(AbstractSocialAuthLoginNode.SocialAuthOutcome.NO_ACCOUNT.name())
.replaceSharedState(
setupAttributes(
spssoConfig,
decryptionKeys,
nameId,
spName,
sharedState,
dn,
persistNameId,
needAssertionEncrypted
)
),
nameId
);
AFAICS the dn attribute is empty in this case. As the dn is used by the setupAttributes function to set the usernames key in the sharedstate, we end up with a sharedstate with no usernames key.
This is also shown in the Authentication debug logging when set to the message level.
The next node in the tree (Provision Dynamic Account) then generates a GUID and uses that as the username to create the user profile.
This blocks us from using the SAML2 Node in a tree at this moment.
Note: when using an authentication chain with a SAML2 module using the same remote IdP and hosted SP, the dynamic profile is created succesfully and the NameID value is used as the username.