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
|
@ -8,7 +8,7 @@ from peewee import IntegrityError
|
|||
|
||||
import features
|
||||
|
||||
from app import app, analytics, get_app_url, oauth_login, authentication
|
||||
from app import app, analytics, get_app_url, oauth_login, authentication, url_scheme_and_hostname
|
||||
from auth.auth_context import get_authenticated_user
|
||||
from auth.decorators import require_session_login
|
||||
from data import model
|
||||
|
@ -251,7 +251,7 @@ def _register_service(login_service):
|
|||
# Redirect to the normal OAuth flow again, so that the user can now create an account.
|
||||
csrf_token = generate_csrf_token(OAUTH_CSRF_TOKEN_NAME)
|
||||
login_scopes = login_service.get_login_scopes()
|
||||
auth_url = login_service.get_auth_url(app.config, '', csrf_token, login_scopes)
|
||||
auth_url = login_service.get_auth_url(url_scheme_and_hostname, '', csrf_token, login_scopes)
|
||||
return redirect(auth_url)
|
||||
|
||||
@require_session_login
|
||||
|
|
Reference in a new issue