mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-08 02:24:08 +00:00
get error description from error key vs error_description key
Signed-off-by: Greg <werner.greg@gmail.com>
This commit is contained in:
@@ -371,9 +371,9 @@ class HubAuth(SingletonConfigurable):
|
|||||||
)
|
)
|
||||||
app_log.warning(r.text)
|
app_log.warning(r.text)
|
||||||
msg = "Failed to check authorization"
|
msg = "Failed to check authorization"
|
||||||
# pass on error_description from oauth failure
|
# pass on error from oauth failure
|
||||||
try:
|
try:
|
||||||
description = r.json().get("error_description")
|
description = r.json().get("error")
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user