document inspect endpoint

This commit is contained in:
AJ ONeal 2020-05-11 04:51:18 +00:00
parent 285dc81dd7
commit 83a5642829
1 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,7 @@ Compatible with
* https://mock.pocketid.app/access_token * https://mock.pocketid.app/access_token
* https://mock.pocketid.app/authorization_header * https://mock.pocketid.app/authorization_header
* https://mock.pocketid.app/inspect_token
* https://xxx.mock.pocketid.app/.well-known/openid-configuration * https://xxx.mock.pocketid.app/.well-known/openid-configuration
* https://xxx.mock.pocketid.app/.well-known/jwks.json * https://xxx.mock.pocketid.app/.well-known/jwks.json
* https://mock.pocketid.app/key.jwk.json * https://mock.pocketid.app/key.jwk.json
@ -48,6 +49,13 @@ For example:
HEADER=$(curl -fL https://mock.pocketid.app/authorization_header) HEADER=$(curl -fL https://mock.pocketid.app/authorization_header)
# Authorization: Bearer <token> # Authorization: Bearer <token>
<h3>Inspecting the Token</h3>
You can see its decoded form at the `inspect_token` endpoint:
curl -fL https://mock.pocketid.app/inspect_token \
-H "$(curl -fL https://mock.pocketid.app/authorization_header)"
<h3>The Token, Decoded</h3> <h3>The Token, Decoded</h3>
The Token will look like this: The Token will look like this: