document inspect endpoint

This commit is contained in:
AJ ONeal 2020-05-11 04:51:18 +00:00
vanhempi 285dc81dd7
commit 83a5642829
1 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa

Näytä tiedosto

@ -13,6 +13,7 @@ Compatible with
* https://mock.pocketid.app/access_token
* 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/jwks.json
* https://mock.pocketid.app/key.jwk.json
@ -48,6 +49,13 @@ For example:
HEADER=$(curl -fL https://mock.pocketid.app/authorization_header)
# 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>
The Token will look like this: