From 5524f5f53d01e9252caea98dc493976348f0b210 Mon Sep 17 00:00:00 2001 From: Anton Kasimov Date: Sun, 23 Jan 2022 23:35:21 +0300 Subject: [PATCH] Allow passing kwargs to OAuth2Auth --- buildbot_gitea/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildbot_gitea/auth.py b/buildbot_gitea/auth.py index aa4d0ec..674001a 100644 --- a/buildbot_gitea/auth.py +++ b/buildbot_gitea/auth.py @@ -9,8 +9,8 @@ class GiteaAuth(OAuth2Auth): AUTH_URL = 'login/oauth/authorize' TOKEN_URL = 'login/oauth/access_token' - def __init__(self, endpoint, client_id, client_secret): - super(GiteaAuth, self).__init__(client_id, client_secret) + def __init__(self, endpoint, client_id, client_secret, **kwargs): + super(GiteaAuth, self).__init__(client_id, client_secret, **kwargs) self.resourceEndpoint = endpoint self.authUri = urljoin(endpoint, self.AUTH_URL) self.tokenUri = urljoin(endpoint, self.TOKEN_URL)