Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provider.py: implement missing abstract methods #5

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

brncsk
Copy link

@brncsk brncsk commented Sep 19, 2023

This commit trivially implements get_client_id() and get_client_secret().

This prevents Sentry's web container from dying w/ HTTP 500s while serving requests with the following error:

TypeError: Can't instantiate abstract class GitLabOAuth2Provider with abstract methods get_client_id, get_client_secret

This commit trivially implements `get_client_id()` and `get_client_secret()`.

This prevents Sentry's `web` container from dying w/ HTTP 500s while serving requests with the following error:

`TypeError: Can't instantiate abstract class GitLabOAuth2Provider with abstract methods get_client_id, get_client_secret`
@brncsk
Copy link
Author

brncsk commented Sep 19, 2023

@zekker6 Sorry, seems like there's another minor change to keep up with the Sentry codebase changing 😅.

I really can't pinpoint the Sentry commit causing this, but adding these two methods to provider.py in situ on my self-hosted instance seems to solve the problem.

@zekker6 zekker6 merged commit 7ee91cc into zekker6:master Sep 19, 2023
@zekker6
Copy link
Owner

zekker6 commented Sep 19, 2023

@brncsk Thank you for the fix!

@zekker6
Copy link
Owner

zekker6 commented Sep 19, 2023

Released this as v0.3.1, could you verify if it works with your Sentry installation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants