An SSO provider for Sentry which enables Generic organization-restricted authentication.
$ pip install https://oauth2.com/getsentry/sentry-auth-oauth2/archive/master.zip
Create a new application under your organization in Generic. Enter the Authorization callback URL as the prefix to your Sentry installation:
https://example.sentry.com
Once done, grab your API keys and drop them in your sentry.conf.py
:
OAUTH2_APP_ID = ""
OAUTH2_API_SECRET = ""
Verified email addresses can optionally be required:
OAUTH2_REQUIRE_VERIFIED_EMAIL = True
The default unique id field is called id, but can be changed:
OAUTH2_UNIQUE_USERID_FIELD = 'user_id'
You will also need to specify the domains:
OAUTH2_BASE_DOMAIN = "oauth2.example.com"
OAUTH2_API_DOMAIN = "oauth2.example.com/api/v3"