forked from silinternational/simplesamlphp-module-mfa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codeship-services.yml
111 lines (97 loc) · 4.23 KB
/
codeship-services.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
version: '2'
services:
mfaidp:
image: silintl/ssp-base:latest
volumes:
- ./:/mfa
- ./development/enable-debug.sh:/data/enable-debug.sh
- ./development/run-dev.sh:/data/run-dev.sh
- ./development/run-tests.sh:/data/run-tests.sh
- ./development/symlink.sh:/data/symlink.sh
- ./development/idp-local/UserPass.php:/data/vendor/simplesamlphp/simplesamlphp/modules/exampleauth/lib/Auth/Source/UserPass.php
- ./src:/data/src
# Revert to standard SSOService.php instead of using sildisco'saml20-idp-hosted
- ./development/idp-local/www_saml2_idp_SSOService.php:/data/vendor/simplesamlphp/simplesamlphp/www/saml2/idp/SSOService.php
# Utilize custom certs
- ./development/idp-local/cert:/data/vendor/simplesamlphp/simplesamlphp/cert
# Utilize custom configs
- ./development/idp-local/config/authsources.php:/data/vendor/simplesamlphp/simplesamlphp/config/authsources.php
# Utilize custom metadata
- ./development/idp-local/metadata/saml20-idp-hosted.php:/data/vendor/simplesamlphp/simplesamlphp/metadata/saml20-idp-hosted.php
- ./development/idp-local/metadata/saml20-sp-remote.php:/data/vendor/simplesamlphp/simplesamlphp/metadata/saml20-sp-remote.php
env_file:
- ./common.env
encrypted_env_file: codeship.env.encrypted
environment:
- ADMIN_PASS=a
- APPLICATION_ENV=test
- IDP_NAME=Local IdP
- MFA_SETUP_URL=http://mfapwmanager/module.php/core/authenticate.php?as=mfa-idp-no-port
- MFA_SETUP_URL_FOR_TESTS=http://mfapwmanager/module.php/core/authenticate.php?as=mfa-idp-no-port
- ID_BROKER_ACCESS_TOKEN=dummy
- ID_BROKER_ASSERT_VALID_IP=false
- ID_BROKER_BASE_URI=dummy
- ID_BROKER_TRUSTED_IP_RANGES=192.168.0.1/8
- SECRET_SALT=NOT-a-SECRET-1362102e525237994020fb7ff18753c8
- SECURE_COOKIE=false
- SHOW_SAML_ERRORS=true
- REMEMBER_ME_SECRET=not-a-secret-570c5b18dacd45bd
- THEME_USE=default
command: /data/run-dev.sh
mfasp:
image: silintl/ssp-base:latest
volumes:
# Utilize custom certs
- ./development/sp-local/cert:/data/vendor/simplesamlphp/simplesamlphp/cert
# Utilize custom configs
- ./development/sp-local/config/authsources-mfa-sp.php:/data/vendor/simplesamlphp/simplesamlphp/config/authsources.php
# Utilize custom metadata
- ./development/sp-local/metadata/saml20-idp-remote.php:/data/vendor/simplesamlphp/simplesamlphp/metadata/saml20-idp-remote.php
env_file:
- ./common.env
environment:
- IDP_NAME=THIS VARIABLE IS REQUIRED BUT PROBABLY NOT USED
- SHOW_SAML_ERRORS=true
- SAML20_IDP_ENABLE=false
- ADMIN_PROTECT_INDEX_PAGE=false
- THEME_USE=default
mfapwmanager:
image: silintl/ssp-base:latest
volumes:
# Utilize custom certs
- ./development/sp-local/cert:/data/vendor/simplesamlphp/simplesamlphp/cert
# Utilize custom configs
- ./development/sp-local/config/authsources-mfa-pw-manager.php:/data/vendor/simplesamlphp/simplesamlphp/config/authsources.php
# Utilize custom metadata
- ./development/sp-local/metadata/saml20-idp-remote.php:/data/vendor/simplesamlphp/simplesamlphp/metadata/saml20-idp-remote.php
environment:
- ADMIN_PASS=sp1
- IDP_NAME=THIS VARIABLE IS REQUIRED BUT PROBABLY NOT USED
- SECRET_SALT=NOT-a-secret-k49fjfkw73hjf9t87wjiw
- SECURE_COOKIE=false
- SHOW_SAML_ERRORS=true
- SAML20_IDP_ENABLE=false
- ADMIN_PROTECT_INDEX_PAGE=false
- THEME_USE=default
tests:
image: silintl/ssp-base:latest
links:
- mfaidp
- mfapwmanager
- mfasp
volumes:
- ./development/run-tests.sh:/data/run-tests.sh
- ./composer.json:/data/composer.json
- ./composer.lock:/data/composer.lock
- ./features:/data/features
- ./src:/data/src
env_file:
- ./common.env
environment:
- MFA_SETUP_URL=http://mfapwmanager/module.php/core/authenticate.php?as=mfa-idp-no-port
- MFA_SETUP_URL_FOR_TESTS=http://mfapwmanager/module.php/core/authenticate.php?as=mfa-idp-no-port
- THEME_USE=default
working_dir: /data
command: /data/run-tests.sh