Code Monkey home page Code Monkey logo

simplesamlphp's Introduction

Dockerized SimpleSAMLphp

Docker container configuration for SimpleSAMLphp built on top of Alpine Linux

Includes build routines for both vanilla SimpleSAMLphp and a container preconfigured with the Tozny IDP module.

Building

This project builds two Docker images, one each for:

  • a vanilla SimpleSAMLphp server
  • a Tozny Authentication-enabled SimpleSAMLphp server

To build either project, cd into the appropriate directory and run docker build .. Both containers are otherwise available on Docker Hub.

Running the Examples

There are two example Docker Compose projects available to illustrate how the new containers can be used with Nginx as a front-end proxy. To run either project, cd into the appropriate directory, configure your parameters, and run docker-compose up.

Configuration

Create a configuration file called /params.yml that defines your authentication sources and metadata (feel free to use params.yml.dist as an example):

# params.yml
entity_id:     This is a secret
secretsalt:    This is a secret
adminpassword: This is a secret
authsources:
  - name: This is a secret
    idp:  This is a secret
metadata:
  - entityid:       This is a secret
    metadata_set:   This is a secret
    ssos:
      binding:      This is a secret
      location:     This is a secret
    slo:
      binding:      This is a secret
      location:     This is a secret
    certdata:       This is a secret
    name_id_format: This is a secret

This file needs to be mounted into the container, either directly via:

$ docker run -v $(pwd)/myparams.yml:/params.yml tozny/simplesamlphp

or as a volume in docker-compose.yml. Either way, upon first run the container will automatically write SimpleSAMLphp's configuration files for you based on this document.

The two stacks will run on localhost, the vanilla server will be exposed on port 8080 and the one with Tozny integrated on port 8090.

Credits

Docker files inspired heavily by:

simplesamlphp's People

Stargazers

 avatar  avatar

Watchers

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