Merge pull request #3027 from coreos-inc/joseph.schorr/QUAY-871/oauth-scopes

Fix OAuth scopes display
This commit is contained in:
josephschorr 2018-03-16 14:28:40 -04:00 committed by GitHub
commit ca0772e1b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

View file

@ -115,6 +115,8 @@ def render_page_template(name, route_data=None, **kwargs):
if not features.BILLING:
version_number = 'Quay %s' % __version__
scopes_set = {scope.scope: scope._asdict() for scope in scopes.app_scopes(app.config).values()}
contents = render_template(name,
route_data=route_data,
external_styles=external_styles,
@ -124,7 +126,7 @@ def render_page_template(name, route_data=None, **kwargs):
config_set=frontend_visible_config(app.config),
oauth_set=get_oauth_config(),
external_login_set=get_external_login_config(),
scope_set=scopes.app_scopes(app.config),
scope_set=scopes_set,
vuln_priority_set=PRIORITY_LEVELS,
enterprise_logo=app.config.get('ENTERPRISE_LOGO_URL', ''),
mixpanel_key=app.config.get('MIXPANEL_KEY', ''),