1 <div id=
"bootstrap-theme">
2 <div ng-init=
"data = {tokenId: routeParams.id, token: null}"></div>
4 <p>This is a temporary debug page. It requires super user permissions or
<code>manage oauth client secrets
</code>.
</p>
6 <p>Some (but not all) OAuth2 tokens are based on
<a href=
"https://en.wikipedia.org/wiki/JSON_Web_Token">JWT
</a>. 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.
</p>
8 <div af-api4-ctrl=
"tokens" af-api4=
"['OAuthSysToken', 'get', {'where': [['id', '=', routeParams.id]]}]"></div>
10 <div ng-if=
"tokens.result.length == 0">
14 <div ng-repeat=
"token in tokens.result">
18 <pre>{{token|json}}
</pre>
20 <h3>Access Token: Raw
</h3>
22 <pre>{{token.access_token}}
</pre>
24 <h3>Access Token: JWT Payload
</h3>
26 (This will only display meaningful data if the token is based on JWT.)
28 <pre>{{token.access_token|unvalidatedJwtDecode|json}}
</pre>