Skip to content

canonical/kratos-external-idp-integrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kratos External IDP Integrator

CharmHub Badge Juju License

Continuous Integration Status pre-commit Conventional Commits

Description

This charm is used to configure an Ory Kratos charm to use an external provider.

Usage

Client registration

Before deploying this charm you should register an oidc client with the provider you wish to use. Instructions for registering a client for some well known providers can be found below. Instructions for a larger list of providers can be found at the Ory Kratos docs.

Note that after registering a client you will need to provide a redirect_uri to the provider. It can be fetched once the integrator charm is deployed.

Azure AD

Instructions for registering a client on Azure AD can be found here.

Okta

Instructions for registering a client on Okta can be found here.

Deployment

For the kratos-external-idp-integrator charm to be operative you need to deploy it, configure it and integrate with the kratos charm.:

juju deploy kratos-external-idp-integrator
juju config kratos-external-idp-integrator \
    client_id={client_id} \
    client_secret={client_secret} \
    provider={provider}
juju integrate kratos-external-idp-integrator kratos

Note that depending on the type of the provider different configurations may be necessary.

Getting the redirect_uri

After deploying, configuring and integrating the integrator charm, its status will change to active. Now you can get the redirect_uri by running:

juju run {unit_name} get-redirect-uri --wait

Disable the provider

To disable provider, i.e remove it from Kratos, run:

juju config kratos-external-idp-integrator enabled=false

Enable the provider

To enable a provider that has been disabled, you need to run:

juju run kratos-external-idp-integrator enabled=true

Contributing

Please see the Juju SDK docs for guidelines on enhancements to this charm following best practice guidelines, and CONTRIBUTING.md for developer guidance.