For sp-initiated sso using middleware on the idp, what is the best way to get the current Partner that initiated the sso?
I am trying to provide a specific value for UserId as well as different attributes depending on which partner initiate the sso.
Currently, I have created a custom SamlClaimFactory, and I would like to return the partner dependent dynamic values for CreateSamlUserID and CreateSamlAttributes.
Using ISamlIdentityProvider.GetStatusAsync to return ISsoStatus and calling GetPartnersPendingResponse looks promising, however that returns an array of pending partnerNames, and if there are multiple, there is no way to tell which is the originator of the current request.
Any suggestions?
|