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

Dynamic configuration loading #107

Open
okke-formsma opened this issue Aug 27, 2020 · 3 comments
Open

Dynamic configuration loading #107

okke-formsma opened this issue Aug 27, 2020 · 3 comments

Comments

@okke-formsma
Copy link

We're using djangosaml2's dynamic configuration loading feature, and would like to be able to use something similar for djangosaml2idp. Is this a feature on the roadmap, or would you be open to pull requests?

Instead of hardcoding the idp settings in the config file, a callable is defined which returns a dictionary with the contents of SAML_IDP_CONFIG: SAML_IDP_CONFIG_LOADER = 'python.path.to.your.callable'

Thanks for the great package!

@challet
Copy link
Contributor

challet commented Feb 15, 2021

I'm trying to come up with something similar. The main difficulty here resides in the ServiceProvider model which uses IDP.load() (more or less the config loading) but where the HttpRequest is not accessible (in djangosaml2 it is passed to the callable).

@Amertz08
Copy link
Contributor

Amertz08 commented Mar 3, 2021

I'm going to bump this. We're in the process of trying to externalize all our configs on our IDP so we don't have to redeploy every time we want something to change. This would be nice feature to avoid that happening.

@challet
Copy link
Contributor

challet commented Mar 19, 2021

I'm trying a PR about this : #126. It may need some further testing for various usages.

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

3 participants