Temporarily remove Dex login support

This will be added back in later in this PR as part of proper generic OIDC support
This commit is contained in:
Joseph Schorr 2017-01-19 14:51:12 -05:00
parent c116ef2987
commit bee2551dc2
2 changed files with 0 additions and 96 deletions

View file

@ -349,22 +349,3 @@ class OIDCConfig(OAuthConfig):
# Reload the key so that we can give a key *instance* to PyJWT to work around its weird parsing
# issues.
return load_der_public_key(rsa_key.key.exportKey('DER'), backend=default_backend())
class DexOAuthConfig(OIDCConfig):
def service_name(self):
return 'Dex'
@property
def public_title(self):
return self.get_public_config()['OIDC_TITLE']
def get_public_config(self):
return {
'CLIENT_ID': self.client_id(),
'AUTHORIZE_ENDPOINT': self.authorize_endpoint(),
# TODO(jschorr): This should ideally come from the Dex side.
'OIDC_TITLE': 'Dex',
'OIDC_LOGO': 'https://tectonic.com/assets/ico/favicon-96x96.png'
}