forked from IBMStockTrader/trader
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserver.xml
More file actions
87 lines (73 loc) · 3.65 KB
/
Copy pathserver.xml
File metadata and controls
87 lines (73 loc) · 3.65 KB
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
<!--
Copyright 2017 IBM Corp All Rights Reserved
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<server description="Trader UI server">
<!-- Enable features -->
<featureManager>
<feature>microProfile-1.3</feature>
<feature>appSecurity-2.0</feature>
<feature>jwt-1.0</feature>
<feature>logstashCollector-1.0</feature>
<!-- <feature>ldapRegistry-3.0</feature> -->
<feature>socialLogin-1.0</feature>
</featureManager>
<logging consoleLogLevel="INFO" traceSpecification="*=info"/>
<httpEndpoint httpPort="9080" httpsPort="9443" host="*" id="defaultHttpEndpoint"/>
<keyStore id="defaultKeyStore" password="passw0rd" type="jks"
location="/config/resources/security/key.jks" />
<keyStore id="validationKeystore" password="Passw0rd" type="jks"
location="/config/resources/security/validationKeystore.jks" />
<sslDefault sslRef="RpSSLConfig" />
<ssl id="RpSSLConfig" keyStoreRef="defaultKeyStore" trustStoreRef="validationKeystore" />
<!-- Use basicRegistry -->
<basicRegistry id="basic" realm="BasicRegistry">
<user name="admin" password="admin"/>
<user name="stock" password="trader"/>
<user name="debug" password="debug"/>
<user name="read" password="only"/>
<user name="other" password="other"/>
<group name="StockTrader">
<member name="stock"/>
<member name="debug"/>
</group>
<group name="StockViewer">
<member name="read"/>
</group>
</basicRegistry>
<administrator-role>
<user>admin</user>
</administrator-role>
<!-- end basicRegistry -->
<!-- Define an LDAP configuration for BluePages.
<ldapRegistry ldapType="IBM Tivoli Directory Server" host="bluepages.ibm.com" port="389" baseDN="o=ibm.com" realm="BluePages">
<idsFilters userFilter="(&(emailAddress=%v)(objectclass=person))"
groupFilter="(&(cn=%v)(|(objectclass=groupOfNames)(objectclass=groupOfUniqueNames)(objectclass=groupOfURLs)))"/>
</ldapRegistry>
<ltpa expiration="1h"/>
-->
<oidcLogin id="${env.OIDC_NAME}" clientId="${env.OIDC_ID}" displayName="${env.OIDC_NAME}"
clientSecret="${env.OIDC_SECRET}" authorizationEndpoint="${env.OIDC_AUTH}"
tokenEndpoint="${env.OIDC_TOKEN}" scope="openid profile email" userNameAttribute="email"
issuer="${env.OIDC_ISSUER}" trustAliasName="${env.OIDC_KEY}"
redirectToRPHostAndPort="${env.OIDC_NODEPORT}">
</oidcLogin>
<webAppSecurity allowFailOverToBasicAuth="true" displayAuthenticationRealm="true" logoutOnHttpSessionExpire="true"
webAlwaysLogin="true" preserveFullyQualifiedReferrerUrl="true" trackLoggedOutSSOCookies="true" ssoCookieName="StockTraderSSO"
useOnlyCustomCookieName="true" ssoUseDomainFromURL="true"/>
<webApplication id="TraderUI" name="TraderUI" location="TraderUI.war" contextRoot="/trader">
<application-bnd>
<security-role id="StockTrader" name="StockTrader">
<special-subject type="ALL_AUTHENTICATED_USERS" id="IBMid"/>
</security-role>
</application-bnd>
</webApplication>
</server>