Skip to content

Support api to mock request authenticatio. 提供API接口用于校验方式验证。

License

Notifications You must be signed in to change notification settings

Weaxs/api-auth-mock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api-auth-mock

GoDoc Go Report Card License

Support api to mock request authentication.

mode api claims secret
basic authentication /api/basic/mock
{
  "account1": "password1",
  "account2": "password2",
  "account3": "password3"
}
none
jwt HS256
HS384
HS512
/api/jwt/mock/hmac
{
  "key": "api-mock-hmac"
}
./conf/hmac_key
RS256
RS384
RS512
/api/jwt/mock/rsa
{
  "key": "api-mock-rsa"
}
public : ./conf/public_key.pub
private : ./conf/private_key
ES256
ES384
ES512
/api/jwt/mock/ecdsa
{
  "key": "api-mock-ecdsa"
}
es256 public : ./conf/ec256-public.pem
es256 private : ./conf/ec256-private.pem
es384 public : ./conf/ec384-public.pem
es384 private : ./conf/ec384-private.pem
es512 public : ./conf/ec512-public.pem
es512 private : ./conf/ec512-private.pem
oauth token: /api/oauth/mock/token
authorize: /api/oauth/mock/authorize
{
  "client_id": "id0001",
  "client_secret": "secret0001"
}
none

About

Support api to mock request authenticatio. 提供API接口用于校验方式验证。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages