1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +01:00

Add docker image and config for local SSO IdP (#2001)

This commit is contained in:
Thomas Rittson 2022-05-26 06:23:58 +10:00 committed by GitHub
parent 11b6e5d21d
commit a788478af3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 40 additions and 0 deletions

View File

@ -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

1
dev/.gitignore vendored
View File

@ -1,6 +1,7 @@
.data
secrets.json
.env
authsources.php
identity_server_dev.crt
identity_server_dev.key

View File

@ -0,0 +1,20 @@
<?php
$config = array(
'admin' => 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'),
),
),
);

View File

@ -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: