This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-run.sh
executable file
·66 lines (49 loc) · 1.56 KB
/
docker-run.sh
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
#!/bin/sh
ARGS=""
if [ -n "${IDP_METADATA}" ]; then
ARGS="${ARGS} -DidpMetadata="${IDP_METADATA}""
fi
if [ -n "${IDP_METADATA_TYPE}" ]; then
ARGS="${ARGS} -DidpMetadataType="${IDP_METADATA_TYPE}""
fi
if [ -n "${METADATA_TYPE}" ]; then
ARGS="${ARGS} -DmetadataType="${METADATA_TYPE}""
fi
if [ -n "${INCLUDE_SCOPING}" ]; then
ARGS="${ARGS} -DincludeScoping="${INCLUDE_SCOPING}""
fi
if [ -n "${METADATA_LOCATION}" ]; then
ARGS="${ARGS} -DmetadataLocation="${METADATA_LOCATION}""
fi
if [ -n "${RELAY_STATE}" ]; then
ARGS="${ARGS} -DrelayState="${RELAY_STATE}""
fi
if [ -n "${NAMEID_FORMAT}" ]; then
ARGS="${ARGS} -DnameIdFormat="${NAMEID_FORMAT}""
fi
if [ -n "${ALLOWED_IDP1}" ]; then
ARGS="${ARGS} -DallowedIdP1="${ALLOWED_IDP1}""
fi
if [ -n "${ACS_URL}" ]; then
ARGS="${ARGS} -DacsUrl="${ACS_URL}""
fi
if [ -n "${SIGN_AUTHN_REQUESTS}" ]; then
ARGS="${ARGS} -DsignAuthnRequests="${SIGN_AUTHN_REQUESTS}""
fi
if [ -n "${FORCED_AUTHN}" ]; then
ARGS="${ARGS} -DforcedAuthn="${FORCED_AUTHN}""
fi
if [ -n "${AUTHN_REQUEST_BINDING_OPTIONAL}" ]; then
ARGS="${ARGS} -DauthnRequestBindingOptional="${AUTHN_REQUEST_BINDING_OPTIONAL}""
fi
if [ -n "${AUTHN_CONTEXT}" ]; then
ARGS="${ARGS} -DauthnContext="${AUTHN_CONTEXT}""
fi
if [ -n "${SP_KEYSTORE_PATH}" ]; then
ARGS="${ARGS} -Dsp.sslKeystorePath="${SP_KEYSTORE_PATH}""
fi
if [ -n "${SP_KEYSTORE_PASSWORD}" ]; then
ARGS="${ARGS} -Dsp.sslKeystorePassword="${SP_KEYSTORE_PASSWORD}""
fi
echo "Running SAML2 sample application with ${ARGS}"
./gradlew jettyRunWar --stacktrace ${ARGS}