OpenID Connect authentication provider for Sentry
Project description
An SSO provider for Sentry which enables OpenID Connect Apps authentication.
This is a fork of sentry-auth-google.
Why fork, instead of adapting sentry-auth-google to work with every OpenID Connect provider?
The maintainer has different ideas with sentry-auth-google. See:
Install
$ pip install sentry-auth-oidc
Example Setup for Google
Start by creating a project in the Google Developers Console.
In the Authorized redirect URIs add the SSO endpoint for your installation:
https://sentry.example.com/auth/sso/
Naturally other providers, that are supporting OpenID-Connect can also be used (like GitLab).
Finally, obtain the API keys and the well-known account URL and plug them into your sentry.conf.py:
OIDC_CLIENT_ID = ""
OIDC_CLIENT_SECRET = ""
OIDC_SCOPE = "openid email"
OIDC_DOMAIN = "https://accounts.google.com" # e.g. for Google
The OIDC_DOMAIN defines where the OIDC configuration is going to be pulled from. Basically it specifies the OIDC server and adds the path .well-known/openid-configuration to it. That’s where different endpoint paths can be found.
Detailed information can be found in the ProviderConfig specification.
You can also define OIDC_ISSUER to change the default provider name in the UI, even when the OIDC_DOMAIN is set.
If your provider doesn’t support the OIDC_DOMAIN, then you have to set these required endpoints by yourself (autorization_endpoint, token_endpoint, userinfo_endpoint, issuer).
OIDC_AUTHORIZATION_ENDPOINT = "https://accounts.google.com/o/oauth2/v2/auth" # e.g. for Google
OIDC_TOKEN_ENDPOINT = "https://www.googleapis.com/oauth2/v4/token" # e.g. for Google
OIDC_USERINFO_ENDPOINT = "https://www.googleapis.com/oauth2/v3/userinfo" # e.g. for Google
OIDC_ISSUER = "Google"
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for muxa1l-sentry-auth-oidc-5.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cabe53f3206c50b33c5657e95e4422927e5283790c511476dba34fec5cf92224 |
|
MD5 | 14be3cac2014c04dee84fff2577677f2 |
|
BLAKE2b-256 | ec6fd276ac2363b779d56009b6d4e85f70419dd2000b4e490bbd3bad8a66b63b |
Hashes for muxa1l_sentry_auth_oidc-5.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 476628467d4ed2cd2da1586af60db771a5fd626c6769c8efb0355c0d4a8ac102 |
|
MD5 | 22807ecbdcfbef678b39fd09d9f318b2 |
|
BLAKE2b-256 | 932ef472aa7b74f67e1228ad3dceb711c56b527908b2f3212763bce4ee1b95de |