How to Configure Sentry Integration with Encvoy ID#
In this guide, you will learn how to set up Single Sign-On (SSO) for Sentry using the Encvoy ID system.
Sentry is a platform for monitoring and tracking application errors. It helps developers identify, analyze, and fix bugs in real-time, improving software quality.
The base version of the product does not support OpenID Connect authentication. To implement this feature, you can use an additional solution — sentry-auth-oidc. This is a specialized provider that enables OpenID Connect integration with Sentry and allows you to configure Single Sign-On (SSO) in the system.
Setting up login via Encvoy ID consists of several key steps performed in two different systems:
Step 1. Create an Application#
- Log in or register with Encvoy ID.
-
Create an application with the following settings:
Field Value Application URL Address of your Sentry installation Redirect URL #1 (Redirect_uri) <installation address>/auth/sso🔍 For more details on creating applications, read the instructions.
-
Open the application settings and copy the values of the following fields:
- Client ID (
Client_id), - Client Secret (
client_secret).
- Client ID (
Step 2. Install sentry-auth-oidc#
-
To install the provider, run the console command:
or create a Shell script with the following content:
and run it from the
<path to Sentry>/sentry/directory. -
After installing the provider, edit the Sentry configuration file
sentry.conf.py. In the configuration file, add a block of variables with the OIDC_CLIENT_ID and OIDC_CLIENT_SECRET parameters copied from the Encvoy ID application.################# # OIDC # ################# #SENTRY_MANAGED_USER_FIELDS = ('email', 'first_name', 'last_name', 'password', ) OIDC_CLIENT_ID = "client id from Encvoy ID application" OIDC_CLIENT_SECRET = "client secret from Encvoy ID application" OIDC_SCOPE = "openid email profile" OIDC_DOMAIN = "https://<Encvoy ID address>/api/oidc" OIDC_ISSUER = "module name for issuing permissions"After this, run the
install.shscript located in the root of the Sentry project, wait for the script to complete, and start the project. -
Go to the Sentry admin panel at
https://<path to Sentry>/settings/sentry/and select the Auth section. Then select the Encvoy ID application.
Configure all necessary settings and save the changes. After this, authorization via Encvoy ID will be enabled, and login via username/password will be disabled.
Step 3. Verify Connection#
- Open the Sentry login page.
- Ensure that the Login via Encvoy ID button has appeared.
-
Click the button and log in using your corporate credentials:
- You will be redirected to the Encvoy ID authentication page;
- After a successful login, you will be redirected back to Sentry as an authorized user.
