Envoy
Prerequisites
A running Casdoor server. Please refer to the Casdoor documentation for Server Installation and Try with Docker.
Configuring Casdoor
- Add the Envoy application. In the Redirect URLs field, enter the URL of the Envoy instance including the port number, and ending with /oauth2/callback (e.g., http://%REQ(:authority)%/oauth2/callback). Make a note of the values in the Client ID and Client Secret.
- Add the envoy-casdoor-role role.
- Add the user1 user. Select Envoy in the Signup application. In the Managed accounts field, select Envoy in the Application dropdown and fill in the username and password. Go back to the Roles page and click "Edit" on the envoy-casdoor-role row. In the opened page, in the Sub users field, select the username you just created (in this case, it is built-in/user1).
Configure Envoy
- Modify the
token_endpoint
,authorization_endpoint
, andclient_id
in the envoy.yaml file. - Modify the
inline_string
in the token-secret.yaml file to the Client Secret of Envoy from Casdoor. - Modify the
inline_bytes
in the hmac-secret.yaml file with a unique, long, and secure phrase. - Add the envoy.yaml, token-secret.yaml, and hmac-secret.yaml files to your Envoy path.
How to Run
- Start Envoy using the envoy.yaml file.
- Go to the website where Envoy is listening. You should immediately be redirected to Casdoor for user authentication.