Skip to main content

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

muxa1l-sentry-auth-oidc-5.0.5.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

muxa1l_sentry_auth_oidc-5.0.5-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file muxa1l-sentry-auth-oidc-5.0.5.tar.gz.

File metadata

  • Download URL: muxa1l-sentry-auth-oidc-5.0.5.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.8.17 Linux/5.15.0-1041-azure

File hashes

Hashes for muxa1l-sentry-auth-oidc-5.0.5.tar.gz
Algorithm Hash digest
SHA256 34168b56ae4ab356229aa6f414a87946d56fbfb8e704de588747067b16e37931
MD5 be7459422c764f0b0d7f64af3ca2623b
BLAKE2b-256 b309e65e5267853ce96e51370c36e1a2a570a13619d0882d93390a5f0e6c8830

See more details on using hashes here.

Provenance

File details

Details for the file muxa1l_sentry_auth_oidc-5.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for muxa1l_sentry_auth_oidc-5.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1beae83470f59357f4cece0d2e530915f0626f5fafb553041385a82f5753d29f
MD5 5d8a6999bbd801e3ea02bd535bda4111
BLAKE2b-256 5ed988b02e4e9b71fa9807570991f58fe11db3d9606c5f90bfa6c48df8255926

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page