Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 799 Bytes

README.md

File metadata and controls

44 lines (35 loc) · 799 Bytes

Curl Examples

Examples of using this in headless modes and environments. Also useful for ad-hoc testing. Ensure you're running through

npm start

Then you can run any example such as getting a user's token directly through

./resource_owner_grant.sh
{
  "access_token": "(some long token)",
  "expires_in": 3600,
  "token_type": "Bearer"
}

You can validate that token through the token info:

./token_info.sh (some long token)
{ 
  "audience": "abc123",
  "expires_in": 3560
}

As well as revoke the token through the token revoke endpoint:

./token_revoke.sh (some long token)
{ }

And then if trying token the info again you will get invalid token error:

./token_info.sh (some revoked or expired long token)
{
  "error": "invalid_token"
}