mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-13 21:13:01 +00:00
define client_id in oauth token test
This commit is contained in:
@@ -274,8 +274,12 @@ def test_get_self(app):
|
|||||||
# identifying user via oauth token works
|
# identifying user via oauth token works
|
||||||
u = add_user(db, app=app, name='orpheus')
|
u = add_user(db, app=app, name='orpheus')
|
||||||
token = uuid.uuid4().hex
|
token = uuid.uuid4().hex
|
||||||
|
oauth_client = orm.OAuthClient(identifier='eurydice')
|
||||||
|
db.add(oauth_client)
|
||||||
|
db.commit()
|
||||||
oauth_token = orm.OAuthAccessToken(
|
oauth_token = orm.OAuthAccessToken(
|
||||||
user=u.orm_user,
|
user=u.orm_user,
|
||||||
|
client_id=oauth_client.identifier,
|
||||||
token=token,
|
token=token,
|
||||||
grant_type=orm.GrantType.authorization_code,
|
grant_type=orm.GrantType.authorization_code,
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user