FireZone
Casdoor can use OIDC protocol as IDP to connect various applications. Here we will use FireZone as an example to show you how to use OIDC to connect to your applications.
Step 1. Deploy Casdoor and FireZone
Firstly, the Casdoor and FireZone should be deployed.
After a successful deployment, you need to ensure:
- Set FireZone URL(Sigin -> Security -> Add OpenID Connect Provider) to FIREZONE_HOSTNAME.
Casdoor can be logged in and used normally.
CASDOOR_HOSTNAME
: http://localhost:8000. If you deploy Casdoor using defaultapp.conf
.
Step 2. Configure Casdoor application
Create or use an existing Casdoor application.
Add a redirect url:
For example, the Configid in the FireZone Provider is TEST, so the redirect URL should be http://[FIREZONE_HOST]/auth/oidc/[PROVIDER_CONFIG_ID]/callback/
Open your favorite browser and visit: http://[CASDOOR_HOSTNAME]/.well-known/openid-configuration
, you will see the OIDC configure of Casdoor.
- Configure FireZone, Security -> Add OpenID Connect Provider
Discovery Document URI
: FireZone Provider Discovery Document URI should behttps://[CASDOOR_HOST]/.well-known/openid-configuration
Scopes
:openid email profile
ConfigID
: ConfigID should be the PROVIDER_COONFIG_ID of the redirect URL and should correspond to casdoor redirect URLAuto create users
: Successful login will automatically create a user