Skip to content

Commit

Permalink
fix environment variable names (mher#1283)
Browse files Browse the repository at this point in the history
Co-authored-by: David Ruiz Falco <[email protected]>
  • Loading branch information
drf7 and David Ruiz Falco authored Jun 10, 2023
1 parent 30289e5 commit 50a3ee0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flower/views/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def __new__(cls, *args, **kwargs):
class GithubLoginHandler(BaseHandler, tornado.auth.OAuth2Mixin):

_OAUTH_DOMAIN = os.getenv(
"FLOWER_GITLAB_OAUTH_DOMAIN", "github.com")
"FLOWER_GITHUB_OAUTH_DOMAIN", "github.com")
_OAUTH_AUTHORIZE_URL = f'https://{_OAUTH_DOMAIN}/login/oauth/authorize'
_OAUTH_ACCESS_TOKEN_URL = f'https://{_OAUTH_DOMAIN}/login/oauth/access_token'
_OAUTH_NO_CALLBACKS = False
Expand Down Expand Up @@ -167,7 +167,7 @@ async def _on_auth(self, user):
class GitLabLoginHandler(BaseHandler, tornado.auth.OAuth2Mixin):

_OAUTH_GITLAB_DOMAIN = os.getenv(
"FLOWER_GITLAB_AUTH_DOMAIN", "gitlab.com")
"FLOWER_GITLAB_OAUTH_DOMAIN", "gitlab.com")
_OAUTH_AUTHORIZE_URL = f'https://{_OAUTH_GITLAB_DOMAIN}/oauth/authorize'
_OAUTH_ACCESS_TOKEN_URL = f'https://{_OAUTH_GITLAB_DOMAIN}/oauth/token'
_OAUTH_NO_CALLBACKS = False
Expand Down

0 comments on commit 50a3ee0

Please sign in to comment.