Merge pull request #3096 from quay/refactor/secscan-simple
Refactor validators to decouple app
This commit is contained in:
commit
7f21d0da58
63 changed files with 510 additions and 192 deletions
|
@ -12,7 +12,7 @@ from peewee import IntegrityError
|
|||
import features
|
||||
|
||||
from app import (app, billing as stripe, authentication, avatar, user_analytics, all_queues,
|
||||
oauth_login, namespace_gc_queue, ip_resolver)
|
||||
oauth_login, namespace_gc_queue, ip_resolver, url_scheme_and_hostname)
|
||||
|
||||
from auth import scopes
|
||||
from auth.auth_context import get_authenticated_user
|
||||
|
@ -785,7 +785,7 @@ class ExternalLoginInformation(ApiResource):
|
|||
|
||||
try:
|
||||
login_scopes = login_service.get_login_scopes()
|
||||
auth_url = login_service.get_auth_url(app.config, redirect_suffix, csrf_token, login_scopes)
|
||||
auth_url = login_service.get_auth_url(url_scheme_and_hostname, redirect_suffix, csrf_token, login_scopes)
|
||||
return {'auth_url': auth_url}
|
||||
except DiscoveryFailureException as dfe:
|
||||
logger.exception('Could not discovery OAuth endpoint information')
|
||||
|
|
Reference in a new issue