Skip to content

An OIDC provider that requires zero user interaction, for development and test environments

Notifications You must be signed in to change notification settings

notclive/zero-interaction-oidc-provider

Repository files navigation

zero-interaction-oidc-provider

This project provides an OIDC provider for use in development and testing. The server will never require user interaction, making it perfect for automated browser testing.

Read more about the motivation behind the project.

Usage

The server is available as a docker image.

docker run --rm \
    -p 9000:9000 \
    -e "REDIRECT_URI=http://localhost:4200/login/callback" \
    notclive/zero-interaction-oidc-provider

You should then provide the following configuration to your OIDC client:

Environment Variables

The simplest configuration can be accomplished using environment variables

Variable Description Default
REDIRECT_URI The URI to be called after authentication, e.g. http://localhost:4200/login/callback. http://localhost:3000
CLIENT_ID The ID of your OIDC client. zero-interaction-client-id
CLIENT_SECRET The secret of your OIDC client, HTTP basic or POST authentication must be used when fetching tokens if and only if a secret is provided. no secret

Behaviour

The server will always authenticate the user with a simple token containing a subject of fixed-user-id, and the openid scope.

About

An OIDC provider that requires zero user interaction, for development and test environments

Resources

Stars

Watchers

Forks

Packages

No packages published