From ff3347feddc4c514012495cdd837e09b057aec37 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 5 Nov 2020 00:01:09 -0800 Subject: [PATCH] dev/core#2141 - Multiple revisions to new screen for inspecting OAuth tokens Overview -------- 5.32 adds `oauth-client`, which includes a screen for inspecting OAuth tokens. This is intended to facilitate debugging. Before ------ * The screen works for inspecting one token. It offers a button to inspect other tokens, but it doesn't work. * The screen only shows the `access_token` (and its JWT variant) After ----- * The malfunctioning button isn't needed. Remove it. * The screen shows a full record of the token details. This should make it even more useful for debuggin. --- ext/oauth-client/ang/oauthJwtDebug.aff.html | 24 ++++++++++----------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/ext/oauth-client/ang/oauthJwtDebug.aff.html b/ext/oauth-client/ang/oauthJwtDebug.aff.html index bafa5dd725..5096a24891 100644 --- a/ext/oauth-client/ang/oauthJwtDebug.aff.html +++ b/ext/oauth-client/ang/oauthJwtDebug.aff.html @@ -5,29 +5,27 @@

Some (but not all) OAuth2 tokens are based on JWT. If a token is based on JWT, then we can examine its content to learn more about what the token signifies. This may help with debugging token-access issues.

-

Token ID

+
- - -
- {{ts('Inspect')}} +
+ No tokens found.
+
+ +

Token Record

-
+
{{token|json}}

Access Token: Raw

-
{{data.token[0].access_token}}
+
{{token.access_token}}

Access Token: JWT Payload

-
{{data.token[0].access_token|unvalidatedJwtDecode|json}}
+ (This will only display meaningful data if the token is based on JWT.) + +
{{token.access_token|unvalidatedJwtDecode|json}}
-- 2.25.1