mock-oidc-user-server
mock-oidc-user-server copied to clipboard
A mock server providing OpenID Connect (OIDC) flows for local development and testing. DO NOT USE IN PRODUCTION!
mock-oidc-user-server
| WARNING: DO NOT USE IN PRODUCTION |
|---|
A mock user server providing OpenID Connect (OIDC) flows for development and testing.
Uses the excellent node-oidc-provider, which comes with dev interactions/flows out of the box (OIDC compliant). Any username and password combination is permitted for logging in, making this very useful for development and CI.
Usage
Example usage via Docker Compose:
version: '3.7'
services:
mock_user_service:
image: quay.io/appvia/mock-oidc-user-server:v0.0.2
environment:
- PORT=9090
- HOST=localhost
- CLIENT_ID=my-client
- CLIENT_SECRET=my-secret
- CLIENT_REDIRECT_URI=http://localhost:8080/cb
- CLIENT_LOGOUT_REDIRECT_URI=http://localhost:8080
ports:
- 9090:9090
Dev
Prerequisites:
- NodeJS (v10.15.0+)
- Yarn
To install dependencies:
yarn install
To build the Docker image locally:
docker build -t mock-oidc-user-server .