mrgomides / mock-oidc-user-server

A mock server providing OpenID Connect (OIDC) flows for local development and testing. DO NOT USE IN PRODUCTION!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mock-oidc-user-server

Build_Status Docker Repository on Quay

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
      - 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 .

About

A mock server providing OpenID Connect (OIDC) flows for local development and testing. DO NOT USE IN PRODUCTION!

License:MIT License


Languages

Language:JavaScript 79.2%Language:Dockerfile 20.8%