Auth mock service

Simple auth service for testing purposes.
Based on https://github.com/stefanprodan/podinfo


Credentials:

{
  "username": "username-role",
  "password": "any password"
}

Example:

{
  "username": "john-admin",
  "password": "any password"
}

Response:

{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImpvaG4iLCJyb2xlIjoiQURNSU4iLCJleHAiOjE2MzM0NjY1ODJ9.biI6wExoQJ9vIGOrlgrZ1GoZAk55TVJJs0gsIRLxBzA","username":"john","role":"ADMIN"}

Decoded JWT:

{
  "alg": "HS256",
  "typ": "JWT"
}
{
  "username": "john",
  "role": "ADMIN",
  "exp": 1633466582
}

GitHub

https://github.com/cv65kr/auth-mock-service