Git Product home page Git Product logo

sham-oidc's Introduction

sham-oidc

sham-oidc is a simple, unsecure OpenID Connect (OIDC) Provider, useful for locally testing another application that is an OpenID Connect Relying Party.

The container can be run by pulling the johnpaulett/sham-oidc image or by checking out the git repository and using the included docker-compose.yml.

Utilizes django-oidc-provider, providing a simply containerized wrapper with the minimal set of templates and configuration to quickly get started.

sham-oidc is not intended for production or public usage.

Environment Setup

It is suggested that you create a .env file or set a SECRET_KEY environment variable.

.env:

SECRET_KEY=<create a secret key>

There are several additional support environment variables:

DEBUG=true
DISABLE_PASSWORD_VALIDATORS=true

Run by Pulling the Image

Sample for including in your own docker-compose.yml:

oidc:
  image: "johnpaulett/sham-oidc"
  ports:
    - "4000:8000"
  volumes:
    - oidc-db:/data
  environment:
    - SECRET_KEY=${SECRET_KEY}

volumes:
  oidc-db:

The sqlite database will be stored in the volume, allowing credentials to persist across time

Run from the Repository

git clone https://github.com/johnpaulett/sham-oidc
cd sham-oidc
docker-compose up --build

django-oidc-provider's settings can be modified in project/settings.py

Container Setup

You will need to run the database migrations, create an RSA key (if using RS256 instead of HS256), and create a super user for the Django Admin:

docker-compose run oidc ./manage.py migrate
docker-compose run oidc ./manage.py creatersakey
docker-compose run oidc ./manage.py createsuperuser

Client Setup

Navigate to http://localhost:4000/admin/ to create a Client. See django-oidc-provider for documentation on how to create a client.

sham-oidc's People

Contributors

johnpaulett avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.