mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-13 13:03:01 +00:00
match oauth client description and sever token note
for spawner api tokens: "Server at /user/:name"
This commit is contained in:
@@ -350,9 +350,7 @@ class User:
|
|||||||
base_url=base_url,
|
base_url=base_url,
|
||||||
)
|
)
|
||||||
db.add(orm_server)
|
db.add(orm_server)
|
||||||
note = "server token"
|
note = "Server at %s" % base_url
|
||||||
if server_name:
|
|
||||||
note += " for server %s" % server_name
|
|
||||||
api_token = self.new_api_token(note=note)
|
api_token = self.new_api_token(note=note)
|
||||||
db.commit()
|
db.commit()
|
||||||
|
|
||||||
@@ -381,7 +379,7 @@ class User:
|
|||||||
# containers that resume will be updated below
|
# containers that resume will be updated below
|
||||||
client_store.add_client(client_id, api_token,
|
client_store.add_client(client_id, api_token,
|
||||||
url_path_join(self.url, server_name, 'oauth_callback'),
|
url_path_join(self.url, server_name, 'oauth_callback'),
|
||||||
description="Server at %s" % url_path_join(self.url, server_name),
|
description="Server at %s" % (url_path_join(self.base_url, server_name) + '/'),
|
||||||
)
|
)
|
||||||
db.commit()
|
db.commit()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user