Skip to content

Credentials Grant

Ken Williamson edited this page Jan 19, 2020 · 7 revisions

Client Credentials Grant Type

Used when calling from another application

  1. Get Token
Method: POST

URL -- http://localhost:3000/oauth/token

Header ---  Content-Type: application/x-www-form-urlencoded
Body:

client_id=10&client_secret=jhcy2YGrvgDsm4VRVtUESiI96K65gQeXcA2TQCJYZW0J1cYLio&grant_type=client_credentials

  1. Response (token)
{
    "access_token": "eNrUWduSozYQ/aJsYTC7xaONDRZloLgJ0JslZmyQ8HjDDrevT4nx7DqVpGLkjWbz3kjdp093HzVPg3PCNin90gHJCBZeCRpwDnVigs+AXjJoOsanp8EJ8ow1WLUoqC5fQM1GMnCDog0yqBw2oNybzlikgB9UYZsxfA6fc81hyIavhc1OeOdym1ORBtxmhxVrUdjHYV97LY5AA2q45Je6caL5sau7FRhdsysPqaWA6qX3YqK743HpVW73HHVlYRu/o1RPnrI1A9VLmadehTJvBGVX5mp/QamuRPyuatvtTedMauu14EHVXnNI4WthGRWpIeV2h9RqyMADd1psQ5hQNoLqgp8GZ3ONJcJqz6JkOm/wza5MaqNBEfgMzt6C2HAI0vDbIV3yGN+/WWO7bwsVUggd5/qt4m+2DaBXH7ZWg21DQ2kIE0pLvwRtkfYl1pzTXnPGvQZHlIEW2bBBWch4bMF7bG/ndc9R/+X7edbkvxNOOILl3nQmvzk+RIMdypw1shcXzJP8tz6w67dJ75k/7grSvsFawZAFo4jHXBoLbDstqbctObtt/le74QDfcNnze21LQdHtnWzLc+rulOY/wHjhVsn9GKtXO9OgKO1ZYSe351/xWBv7XfMdj8mv5BpDdWwA47gnnNdjka0ZoRbFKXu9zdefMLx+622Owz/FwnO212CT18aQR8ZABqO6xSmZ8gnaPA2pVF6U83nxMRzI53Pgxo7ULJ5yWRonZAfyOBFvl/M5EbREhSdSey/yuBAs3eF+LhSZJx/LDVEE6uuHXeZc3uusyNY0l9uDJ/7PxLc5ZJ4isx/4kUA/UPsL0WTy4PjTeCC33waaJ4RvwQpTZq+lMzTNlEPZc2twzV8eR8XfCOmWBbHDk1zdQrQZ9bQgKteBHsszpzrI5OW4ms1LpEJFKi+F6tuiSCovcxFejii1hlw9yuSlkHb6gPfVOCfvZMrbB7xPYqD8v94nwdIbfv168kY6fwcgtS8FS7F5KV3XLefPIcG3aHST7/pe/2gn0o+uWl6w3uktnqc78637j+57IuOMskCCr0knoomne+Hkp8gbSb+tpfzeuRnT+XPTetMh2GbjbO0pxtFetMcL9U0RH+OV+uj7TWrdx6tH6l5gRyJW8275UB1J7E9JJzLXQ8054XM4/SMQm01ivgpp+uucF9zjCfYnV2BHWgx5qitwxzoUyeJq0onMp6SG9JA5LNdCSGoqr6fGq+HhfiWNr4Hu/QRsBXS+CGcX7oY+uNenou89QX9dsZ2OfK26EODsbvqvaoU6sRO5uMYrQW0FZfJV8eNcPP8i+0ehfrXtH+9XkrTghszRgsObTpXYSwX3Dzx2ifkW+u+M0vBCalgV1gfoP1NQq/6Ln1mmfCqUE1FMY6l9a/QzfrJ9FuwNv8wwLr96XzdN9NyslN9e1l+OzR8BAAD//xazIGw=",
    "token_type": "bearer",
    "expires_in": 3600,
    "refresh_token": ""
}