Coder Social home page Coder Social logo

docker-saml-testsetup's Introduction

Docker SAML 2.0 Test-Setup

This setup uses SimpleSAMLphp to provide a SAML 2.0 IdP and SP running in separate docker containers. Various configuration options can be set through environment variabels without the need to rebuild the images.


Warning!: Do not use this setup in production! The containers are not configured for security and use static credentials and keys


Build

Make sure docker and docker-compose are installed on your system. To build the images, run docker-compose build. To start the containers, run docker-compose up. You can then access the SP on http://localhost:8180/simplesaml/index.php. The IdP is made available at http://localhost:8080/simplesampl/index.php. There is an admin account on both the IdP and the SP, the password for which is secret. Furthermore, two testuser accounts are preconfigured on the Idp as user1:user1pass and user2:user2pass

Example

If we want to make the SP issue signed Authentication Requests using the HTTP-POST binding and the IdP should sign and encrypt assertions while not signing the Response, we could use the following environment variables before starting the containers:

export REQ_BINDING='HTTP-POST' SIGN_REQ=true SIGN_RESP=false ENCRYPT_ASSERTION=true SIGN_ASSERTION=true
docker-compose up

License

This project is heavily based on https://github.com/kristophjunge/docker-test-saml-idp and https://github.com/chrisUsick/docker-test-saml-sp and is therefore lincensed under the MIT license by Kristoph Junge.

docker-saml-testsetup's People

Contributors

plokta avatar

Stargazers

 avatar

Watchers

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