I'm relatively new to SAML and came across the OneLogin Python SAML library. I was able to get it up and running with my web app being the Service provider (SP) and OneLogin being the Identity Provider (Idp).
I would like to be able to add support for other Identity Providers as well. However, I find that the python-saml library is using a settings.json
to get the Idp information. I have looked at the following issues on their Github project but have been unable to get an actionable solution:
[1] https://github.com/onelogin/python-saml/issues/64
[2] https://github.com/onelogin/python-saml/issues/52
Has anyone been successful in using this library to be able to support multiple Identity Providers?
This was answered in the git repo:
After that, it's up to your application to provide a mechanism to tie different tenants to different IDPs. Most folks typically configure their application to either do this via subdomain (sometenant.myapp.com) or URL (www.myapp.com/sometenant) - with settings configured differently for each tenant
Once you've done that, SAML is SAML and it should work with any IDP that supports it.