Is there a recommended way to add identity providers at runtime? Currently we are doing Application.put_env(:samly, :identity_providers, identity_providers) and generating identity_providers from IdpData.load_providers/1 which doesn't feel like the cleanest since it has to re-generate existing identity providers.
Happy to contribute a PR if there is interest supporting an API to add a new identity provider at runtime. The use case for us is we allow users to integrate their Okta organization so different users Okta accounts ex. company1.okta.com and company2.okta.com which would correspond to company1.slab.com and company2.slab.com on our end. These would have different metadata XML files that we would add during runtime.
Is there a recommended way to add identity providers at runtime? Currently we are doing
Application.put_env(:samly, :identity_providers, identity_providers)and generatingidentity_providersfromIdpData.load_providers/1which doesn't feel like the cleanest since it has to re-generate existing identity providers.Happy to contribute a PR if there is interest supporting an API to add a new identity provider at runtime. The use case for us is we allow users to integrate their Okta organization so different users Okta accounts ex.
company1.okta.comandcompany2.okta.comwhich would correspond tocompany1.slab.comandcompany2.slab.comon our end. These would have different metadata XML files that we would add during runtime.