Make sure the external login link for GHE links to the enterprise GitHub and not the hosted version

This commit is contained in:
Joseph Schorr 2014-11-06 20:35:52 -05:00
parent d7efb7cf7a
commit 9d1b6d829a
5 changed files with 28 additions and 11 deletions

View file

@ -180,10 +180,7 @@ def render_page_template(name, **kwargs):
def get_oauth_config():
oauth_config = {}
for oauth_app in oauth_apps:
oauth_config[oauth_app.key_name] = {
'CLIENT_ID': oauth_app.client_id(),
'AUTHORIZE_ENDPOINT': oauth_app.authorize_endpoint()
}
oauth_config[oauth_app.key_name] = oauth_app.get_public_config()
return oauth_config