{% block token_row scoped %}
- {{token.note}} |
+ {{token.note}} |
+
+
+ scopes
+ {% for scope in token.scopes %}
+ {{ scope }}
+ {% endfor %}
+
+ |
{%- if token.last_activity -%}
{{ token.last_activity.isoformat() + 'Z' }}
@@ -113,7 +130,7 @@
{% endif %}
{% if oauth_clients %}
-
+
Authorized Applications
These are applications that use OAuth with JupyterHub
@@ -122,10 +139,11 @@
OAuth tokens can generally only be used to identify you,
not take actions on your behalf.
-
+
Application |
+ Permissions |
Last used |
First authorized |
@@ -135,7 +153,18 @@
{% block client_row scoped %}
- {{ client['description'] }} |
+ {{ client['description'] }} |
+
+
+ scopes
+ {# create set of scopes on all tokens -#}
+ {# sum concatenates all token.scopes into a single list -#}
+ {# then filter to unique set and sort -#}
+ {% for scope in client.tokens | sum(attribute="scopes", start=[]) | unique | sort %}
+ {{ scope }}
+ {% endfor %}
+
+ |
{%- if client['last_activity'] -%}
{{ client['last_activity'].isoformat() + 'Z' }}
| |