Public Repository

Last pushed: 5 months ago
Short Description
simplesamlphp - A PHP implementation of SAML 2.0 service provider and identity provider on apache
Full Description

A PHP implementation of SAML 2.0 service provider and identity provider on apache.

This container exposes both unsecure (HTTP) and secure (HTTPS) endpoints. The browser will query that the SSL is not certified by an Authority, but just accept the warning and continue to the site.

sudo docker pull jnyryan/simplesamlphp
sudo docker run -d -p 8080:80 -p 8443:443 jnyryan/simplesamlphp

To access the web site

http://localhost:8080/simplesaml
https://localhost:8443/simplesaml

username: admin
password: password
Docker Pull Command
Owner
jnyryan

Comments (13)
muke5hy
5 months ago

When I do Test authentication sources

I get following error what I need to do ?

SimpleSAML_Error_Error: UNHANDLEDEXCEPTION

Backtrace:
1 www/_include.php:45 (SimpleSAML_exception_handler)
0 [builtin] (N/A)
Caused by: Exception: saml20-idp-remote/'SimpleSAMLAuthExampleIdpRemote'['SingleSignOnService']:Could not find a supported SingleSignOnService endpoint.
Backtrace:
4 lib/SimpleSAML/Configuration.php:1236 (SimpleSAML_Configuration::getDefaultEndpoint)
3 modules/saml/lib/Auth/Source/SP.php:291 (sspmod_saml_Auth_Source_SP::startSSO2)
2 modules/saml/lib/Auth/Source/SP.php:335 (sspmod_saml_Auth_Source_SP::startSSO)
1 modules/saml/www/sp/discoresp.php:28 (require)
0 www/module.php:135 (N/A)

jnyryan
5 months ago

Thanks to all for the looping problem solutions. I updated the repo and image.

rocketgardenlabs
a year ago

Thank you rharkins for the tip on handling the loop problem.

rharkins
a year ago

Loop problem can be mitigated by adding -v SOME_TMP_DIR:/var/lib/php5/

eddo888
a year ago

docker exec simplesaml chmod 777 -R /var/lib/php5

uzubair
2 years ago

The 'redirect loops' is a result of permission issues. Look at /var/log/apache2/error.log file:

session_write_close(): open(/var/lib/php5/sess_c1e333715ba21c0a923761f621784eff, O_RDWR) failed: Permission denied (13) in /var/simplesamlphp/lib/SimpleSAML/SessionHandlerPHP.php on line 85

I changed the permissions and voila everything works. :)

uzubair
2 years ago

I have tried the docker file but still getting the redirect loop. Any suggestions?

uday
2 years ago

Still seeing the redirect issue with latest / 1.1 tag.

jnyryan
2 years ago

Fixed the redirect loop.
This is available in tag 1.1 onwards

noggin
3 years ago

Redirect loop issue is solved by using the Dockerfile from author's github repo.