Skip to content

opengovern/mock-dex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mock Dex OIDC Server

A simple mock OIDC (OpenID Connect) server written in Go. It primarily serves a JWKS (JSON Web Key Set) endpoint and an OpenID configuration endpoint for testing purposes.

Prerequisites

Running with Docker

  1. Clone the repository:

    git clone [https://github.com/opengovern/mock-dex.git](https://github.com/opengovern/mock-dex.git)
    cd mock-dex
  2. Build the Docker image:

    docker build -t mock-dex .
  3. Run the Docker container:

    docker run -p 5556:5556 mock-dex

    This will start the server and map port 5556 on your local machine to the container's port 5556.

Endpoints

Once the container is running, the following endpoints are available:

  • JWKS Endpoint: http://localhost:5556/keys

    • Provides the public keys used for signing tokens (in JWK Set format).
    • Test with: curl http://localhost:5556/keys
  • OpenID Configuration: http://localhost:5556/.well-known/openid-configuration

    • Provides metadata about the mock OIDC provider, including the JWKS URI.
    • Test with: curl http://localhost:5556/.well-known/openid-configuration

Stopping the Server

Press Ctrl+C in the terminal where the docker run command is executing.

mock-dex

About

Mock DexIDP with simple nodejs app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published