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>
10 <input ng-model=
"routeParams.id" type=
"text"/>
12 <div class=
"btn-group">
13 <a class=
"btn btn-default"
14 af-api4-action=
"['OAuthSysToken', 'get', {where: [['id', '=', data.tokenId]]}]"
15 af-api4-start-msg=
"ts('Fetching...')"
16 af-api4-success-msg=
"ts('Fetched')"
17 af-api4-success=
"data.token = response"
18 >{{ts('Inspect')}}
</a>
22 <div ng-if=
"!!data.token">
24 <h3>Access Token: Raw
</h3>
26 <pre>{{data.token[
0].access_token}}
</pre>
28 <h3>Access Token: JWT Payload
</h3>
30 <pre>{{data.token[
0].access_token|unvalidatedJwtDecode|json}}
</pre>