GithubHelp home page GithubHelp logo

mschwager / docker-simplesamlphp Goto Github PK

View Code? Open in Web Editor NEW
17.0 5.0 5.0 23 KB

SimpleSAMLphp using Docker Compose.

License: Apache License 2.0

Shell 38.65% Dockerfile 61.35%
saml simplesamlphp idp sp

docker-simplesamlphp's Introduction

SimpleSAMLphp using Docker Compose

CI

Run SimpleSAMLphp using nginx, php-fpm, and Docker Compose.

Installing

$ git clone https://github.com/mschwager/docker-simplesamlphp.git
$ cd docker-simplesamlphp
$ docker-compose build
$ ./bootstrap.sh

Running

$ docker-compose up

Then you should be able to visit http://localhost/simplesaml/index.php.

Configuration

Configuration files are persistently stored and made available for editing in the .storage directory.

To enable the admin interface you must make the following changes in config.php:

  • Change auth.adminpassword from its default value of 123
  • Change secretsalt from its default value of secretsalt123
  • Set 'admin' => TRUE in module.enable

Because NGINX is listening for HTTP requests, you must also make the following changes in config.php:

  • Set session.cookie.secure to false
  • Set session.cookie.samesite to null
  • Set language.cookie.secure to false
  • Set language.cookie.samesite to null

WARNING: If you're running these containers in a production-like environment be sure to enable HTTPS and change these settings back to their default values.

You can then visit http://localhost/simplesaml/module.php/admin/.

From here, you can follow the next steps for configuring SP and/or IdP functionality.

docker-simplesamlphp's People

Contributors

mschwager avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

docker-simplesamlphp's Issues

The app is not working

I tried the exact steps mentioned in the Readme. After the service is being started, tried hitting http://localhost/simplesaml/index.php and got the below errror.

SimpleSAML\Error\CriticalConfigurationError: The configuration is invalid: The configuration (config/config.php) is invalid: Missing configuration file

Backtrace:
1 www/_include.php:98 (require_once)
0 www/index.php:3 (N/A)

Seems no longer works?

Tried with README options provided.

getting below :

SimpleSAML\Error\CriticalConfigurationError: The configuration is invalid: The configuration (config/config.php) is invalid: Missing configuration file

Backtrace:
1 www/_include.php:98 (require_once)
0 www/index.php:3 (N/A)

seems its not upto date anymore?

Setting secure cookie on plain HTTP is not allowed

Hi @mschwager,

first of all thank you for your work, it was very useful to me.

Then, i installed simplesamlphp-v.2.0.6 and your docker, locally (I changed the version in the bootstrap.sh file), I followed every step and when I click on http://localhost/simplesaml/index.php. everything works fine.

I changed the settings in config.php to enable the admin, but when i click on http://localhost/simplesaml/module.php/admin/.
I have an error:

"SimpleSAML\Error\CriticalConfigurationError: The configuration is invalid: Setting secure cookie on plain HTTP is not allowed."

I tried to change 'baseurlpath' and application array ('baseURL') and 'session.cookie.secure' to false, but still not working.

do you have any tips?

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.