项目作者: kazuhisya

项目描述 :
OAuth2 demo server for "Client Credentials Grant" with JWT feature
高级语言: Go
项目地址: git://github.com/kazuhisya/oauth2-demo-cc.git
创建时间: 2019-02-13T06:36:58Z
项目社区:https://github.com/kazuhisya/oauth2-demo-cc

开源协议:

下载


OAuth2 demo server

for Client Credentials Grant

  1. $ curl "http://localhost:9096/token?grant_type=client_credentials&client_id=000000&client_secret=123456&scope=tmp" | jq
  2. {
  3. "access_token": "2F4759L4MYUGAZERVF7H9Q",
  4. "expires_in": 120,
  5. "scope": "tmp",
  6. "token_type": "Bearer"
  7. }
  1. $ curl "http://localhost:9096/test?access_token=2F4759L4MYUGAZERVF7H9Q" | jq
  2. {
  3. "client_id": "000000",
  4. "expires_in": 102,
  5. "scope": "tmp"
  6. }