store relationship between oauth client and service/spawner

so that we can look up the spawner/service from the oauth client and vice versa
This commit is contained in:
Min RK
2021-05-12 14:48:16 +02:00
parent 563146445f
commit 7e46d5d0fc
9 changed files with 85 additions and 22 deletions

View File

@@ -307,7 +307,7 @@ async def test_get_self(app):
db.commit()
oauth_token = orm.APIToken(
user=u.orm_user,
client=oauth_client,
oauth_client=oauth_client,
token=token,
)
db.add(oauth_token)