Mapping for multiple IdPs
Opened this issue · 1 comments
sonjabijou commented
Hi! I have a scenario where I have multiple IdPs, and I've put their metadata files in a single folder which I add using saml2Config.IdentityProviders.AddByMetadataDirectory
.
Is it possible to map attributes of a request (e.g. host name) to the appropriate IdP? If so, what's the recommended method?
sonjabijou commented
I found the IdpSelectionUtil.IdpSelectionEvent
, which I'm handling with logic to map HttpContext.Current.Request
against the IdPs. This is working well. If there's a better method though, please let me know. :)