mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 14:03:02 +00:00
support oauth in services
fix bugs caught by tests
This commit is contained in:
@@ -616,6 +616,7 @@ class APIToken(Base):
|
||||
|
||||
|
||||
class GrantType(enum.Enum):
|
||||
# we only use authorization_code for now
|
||||
authorization_code = 'authorization_code'
|
||||
implicit = 'implicit'
|
||||
password = 'password'
|
||||
@@ -656,7 +657,6 @@ class OAuthClient(Base):
|
||||
redirect_uri = Column(Unicode(1023))
|
||||
|
||||
|
||||
|
||||
def new_session_factory(url="sqlite:///:memory:", reset=False, **kwargs):
|
||||
"""Create a new session at url"""
|
||||
if url.startswith('sqlite'):
|
||||
|
Reference in New Issue
Block a user