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 |