fix oauth url for SU servers with subdomains

and services without
This commit is contained in:
Min RK
2017-04-05 15:40:11 +02:00
parent ce4b9e8e9f
commit ffd3c171fe
3 changed files with 12 additions and 4 deletions

View File

@@ -257,7 +257,7 @@ class User(HasTraits):
# except for resuming containers.
if oauth_client is None or not spawner.will_resume:
client_store.add_client(client_id, api_token,
url_path_join(server.base_url, 'oauth_callback'),
url_path_join(self.url, 'oauth_callback'),
)
db.commit()