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

docs: Add RP-Initiated Logout and Allowed Logout URLs configuration to Auth0 setup #188

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions docs/Auth/2. Web/2.IDPs/auth0.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ Follow these steps to configure Auth0:
3. **Configure Application Settings:** in the [**Applications/Settings**](https://auth0.com/docs/get-started/applications/application-settings) section, set the following parameters:
- Obtain and save **Domain**,**Client ID** and **Client secrets** generated for your application.
- Allowed Callback URLs: `https://<chat_url>/api/auth/callback/auth0`
4. **Create API:** in the **Applications/APIs** section, configure a new [**API**](https://auth0.com/docs/get-started/apis/api-settings).
5. **Create Users:** in the **User Management/Users** section, create necessary [Users](https://auth0.com/docs/manage-users/user-accounts/create-users).
6. (Optional) **Create and Assign Roles:** in the **User Management/Roles** section, create necessary [Roles](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/create-roles).
7. (Optional) **Create Action:** in the **Actions/Library** section, create a necessary [Action](https://auth0.com/docs/customize/actions/write-your-first-action#create-an-action) and [Deploy](https://auth0.com/docs/customize/actions/write-your-first-action#deploy-the-action) it. Action parameters:
4. **Update Application Allowed Logout URLs:** in the [**Applications/Settings**](https://auth0.com/docs/authenticate/login/logout/log-users-out-of-auth0#update-application-allowed-logout-urls), add the following:
- Allowed Logout URLs: `https://<chat_url>/api/auth/logout`
5. **Configure RP-Initiated Logout:** follow the [Auth0 documentation](https://auth0.com/docs/authenticate/login/logout/log-users-out-of-auth0#configure-rp-initiated-logout) to configure RP-Initiated Logout in your application.
6. **Create API:** in the **Applications/APIs** section, configure a new [**API**](https://auth0.com/docs/get-started/apis/api-settings).
7. **Create Users:** in the **User Management/Users** section, create necessary [Users](https://auth0.com/docs/manage-users/user-accounts/create-users).
8. (Optional) **Create and Assign Roles:** in the **User Management/Roles** section, create necessary [Roles](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/create-roles).
9. (Optional) **Create Action:** in the **Actions/Library** section, create a necessary [Action](https://auth0.com/docs/customize/actions/write-your-first-action#create-an-action) and [Deploy](https://auth0.com/docs/customize/actions/write-your-first-action#deploy-the-action) it. Action parameters:
- Name: `DIAL role`
- Trigger: `Login/Post Login`
- Runtime: `Node 18`
Expand All @@ -52,7 +55,8 @@ Follow these steps to configure Auth0:
}
};
```
8. (Optional) **Configure the Login Flow:** in the **Actions/Flows** section, choose `Login`, add a custom action `DIAL role` to `Flow` and apply the change. Refer to [Auth0](https://auth0.com/docs/customize/actions/flows-and-triggers) documentation to learn more.
10. (Optional) **Configure the Login Flow:** in the **Actions/Flows** section, choose `Login`, add a custom action `DIAL role` to `Flow` and apply the change. Refer to [Auth0](https://auth0.com/docs/customize/actions/flows-and-triggers) documentation to learn more.


### Configure AI DIAL

Expand Down
1 change: 1 addition & 0 deletions docs/Auth/2. Web/2.IDPs/cognito.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Follow these steps to configure AWS Cognito:
- **App client name**: provide a relevant and descriptive name for the client.
- **Client secret**: select the option to `Generate a client secret`
- **Allowed callback URLs**: enter `https://<chat_url>/api/auth/callback/cognito`
- **Allowed sign-out URLs**: enter `https://<chat_url>/`.
- **Authentication flows**: enable `ALLOW_CUSTOM_AUTH` `ALLOW_REFRESH_TOKEN_AUTH` and `ALLOW_USER_SRP_AUTH`.
- **OpenID Connect scopes**: select `OpenID` `Email` `Profile`
1. **Create Cognito Domain:** when setting up a user pool, navigate to the **Hosted authentication pages**. If the **Use the Cognito Hosted UI** option is enabled, you'll configure your domain here. Alternatively, you can access this configuration later by going to **App Integration/Domain/Actions**. Refer to [AWS documentation](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-userpools-server-contract-reference.html) for details.
Expand Down