Skip to content

A mocked oauth server for development and e2e testing

License

Notifications You must be signed in to change notification settings

geprog/oauth-mock-server

Repository files navigation

oauth-mock-server

🚨 IMPORTANT: This tool should ONLY be used for development and testing setups!

A mocked oauth server for development and e2e testing.

Config

You can adjust the default configuration by placing a file oauth-mock-server.json in your current working directory:

{
  "port": 5000,
  "realm": "my-project",
  "users": [
    {
      "id": "1",
      "username": "toni",
      "email": "[email protected]",
      "name": "Toni Tester"
    },
    {
      "id": "2",
      "username": "alice",
      "email": "[email protected]",
      "name": "Alice Wonderland"
    },
    {
      "id": "3",
      "username": "herbert",
      "email": "[email protected]",
      "name": "Herbert"
    }
  ],
  "tokenExpiresIn": 86400 // 24 hours in seconds
}