diff --git a/dev/.env.example b/dev/.env.example index 5d5d11be8..b78f09005 100644 --- a/dev/.env.example +++ b/dev/.env.example @@ -7,3 +7,8 @@ MAILCATCHER_PORT=1080 # Alternative databases POSTGRES_PASSWORD=SET_A_PASSWORD_HERE_123 MYSQL_ROOT_PASSWORD=SET_A_PASSWORD_HERE_123 + +# IdP configuration +# Complete using the values from the Manage SSO page in the web vault +IDP_SP_ENTITY_ID=http://localhost:51822/saml2 +IDP_SP_ACS_URL=http://localhost:51822/saml2/yourOrgIdHere/Acs diff --git a/dev/.gitignore b/dev/.gitignore index 2e0c6f8f6..d963c75c1 100644 --- a/dev/.gitignore +++ b/dev/.gitignore @@ -1,6 +1,7 @@ .data secrets.json .env +authsources.php identity_server_dev.crt identity_server_dev.key diff --git a/dev/authsources.php.example b/dev/authsources.php.example new file mode 100644 index 000000000..ce7907ba6 --- /dev/null +++ b/dev/authsources.php.example @@ -0,0 +1,20 @@ + array( + 'core:AdminPassword', + ), + + 'example-userpass' => array( + 'exampleauth:UserPass', + 'user1:password' => array( + 'email' => 'user1@example.com', + 'uid' => array('user1'), + ), + 'user2:password' => array( + 'email' => 'user2@example.com', + 'uid' => array('user2'), + ), + ), + +); diff --git a/dev/docker-compose.yml b/dev/docker-compose.yml index 9d29e2954..199b0e82b 100644 --- a/dev/docker-compose.yml +++ b/dev/docker-compose.yml @@ -70,6 +70,20 @@ services: profiles: - mysql + idp: + image: kenchan0130/simplesamlphp:1.19.3 + container_name: idp + ports: + - "8090:8080" + environment: + SIMPLESAMLPHP_SP_ENTITY_ID: ${IDP_SP_ENTITY_ID} + SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE: ${IDP_SP_ACS_URL} + SIMPLESAMLPHP_SP_SINGLE_LOGOUT_SERVICE: null + volumes: + - ./authsources.php:/var/www/simplesamlphp/config/authsources.php + profiles: + - idp + volumes: edgesql_dev_data: postgres_dev_data: