Sign in
apache
/
airavata-sandbox
/
refs/heads/master
/
.
/
jupyter-lab-integrations
/
auth-plugin
/
jhub_airavata_authenticator
/
jhub_airavata_authenticator
/
airavata_auth.py
blob: dde3d1a37a59bfb830b2c708cc2cd52ea657d510 [
file
] [
log
] [
blame
]
from
tornado
import
gen
from
jupyterhub
.
auth
import
Authenticator
class
Airav
:
ataAuthenticator
(
Authenticator
):
@gen
.
coroutine
def
authenticate
(
self
,
handler
,
data
):
if
data
[
'username'
]
==
'admin'
:
return
data
[
'username'
]