add "Login with..." button

for custom authenticators that use external services (e.g. OAuth)
This commit is contained in:
Min RK
2015-03-21 20:12:35 -04:00
parent 24fd843c3c
commit 1bc8d50261
4 changed files with 26 additions and 2 deletions

View File

@@ -30,7 +30,18 @@ class Authenticator(LoggingConfigurable):
If empty, allow any user to attempt login.
"""
)
custom_html = Unicode('')
custom_html = Unicode('',
help="""HTML login form for custom handlers.
Override in form-based custom authenticators
that don't use username+password,
or need custom branding.
"""
)
login_service = Unicode('',
help="""Name of the login service for external
login services (e.g. 'GitHub').
"""
)
@gen.coroutine
def authenticate(self, handler, data):