Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapping for multiple IdPs #22

Open
sonjabijou opened this issue Dec 14, 2017 · 1 comment
Open

Mapping for multiple IdPs #22

sonjabijou opened this issue Dec 14, 2017 · 1 comment

Comments

@sonjabijou
Copy link

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
Copy link
Author

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. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant