sentry-auth-gitlab icon indicating copy to clipboard operation
sentry-auth-gitlab copied to clipboard

Fix refreshing of OAuth2 tokens in Sentry 9+

Open stanhu opened this issue 5 years ago • 0 comments

Sentry has a background job that checks the state of all OAuth2 identities. If the OAuth2 refresh protocol doesn't work, it marks the identity as needing to reauthenticate.

The refresh protocol was failing because the client_id and client_secret were not set in https://github.com/getsentry/sentry/blob/8f717ad1198aa1549bf799b72efe880704f1c6fc/src/sentry/auth/providers/oauth2.py#L153-L154.

stanhu avatar Apr 29 '20 01:04 stanhu