mirror of
https://github.com/bitwarden/server.git
synced 2024-11-24 12:35:25 +01:00
Add docker image and config for local SSO IdP (#2001)
This commit is contained in:
parent
11b6e5d21d
commit
a788478af3
@ -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
1
dev/.gitignore
vendored
@ -1,6 +1,7 @@
|
||||
.data
|
||||
secrets.json
|
||||
.env
|
||||
authsources.php
|
||||
|
||||
identity_server_dev.crt
|
||||
identity_server_dev.key
|
||||
|
20
dev/authsources.php.example
Normal file
20
dev/authsources.php.example
Normal 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'),
|
||||
),
|
||||
),
|
||||
|
||||
);
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user