Skip to content

Commit d96fa3e

Browse files
committed
read scope from settings
1 parent 44c6161 commit d96fa3e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sentry_auth_gitlab/constants.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77

88
BASE_DOMAIN = getattr(settings, 'GITLAB_BASE_DOMAIN', None)
99
SCHEME = getattr(settings, 'GITLAB_HTTP_SCHEME', 'https')
10-
API_VERSION = getattr(settings, 'GITLAB_API_VERSION', 3)
10+
API_VERSION = getattr(settings, 'GITLAB_API_VERSION', 4)
11+
SCOPE = getattr(settings, 'GITLAB_AUTH_SCOPE', 'api')
1112

1213
ACCESS_TOKEN_URL = '{0}://{1}/oauth/token'.format(SCHEME, BASE_DOMAIN)
1314
AUTHORIZE_URL = '{0}://{1}/oauth/authorize'.format(SCHEME, BASE_DOMAIN)
1415
API_BASE_URL = '{0}://{1}/api/v{2}'.format(SCHEME, BASE_DOMAIN, API_VERSION)
15-
16-
SCOPE = 'api'

0 commit comments

Comments
 (0)