-
Notifications
You must be signed in to change notification settings - Fork 18
/
server.xml
executable file
·52 lines (43 loc) · 1.67 KB
/
server.xml
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
<server description="microservice-ssoserver">
<!-- Enable features -->
<featureManager>
<feature>ssl-1.0</feature>
<feature>appSecurity-2.0</feature>
<feature>openidConnectServer-1.0</feature>
<feature>servlet-3.1</feature>
<feature>logstashCollector-1.0</feature>
</featureManager>
<httpEndpoint id="defaultHttpEndpoint"
host="*"
httpPort="9080"
httpsPort="9443" />
<!-- this is in a configMap
<basicRegistry id="basic" realm="OpBasicRealm">
</basicRegistry>
-->
<oauth-roles>
<authenticated>
<special-subject type="ALL_AUTHENTICATED_USERS" />
</authenticated>
</oauth-roles>
<!-- this is a sample configuration from the microprofile-conference demo. Replace with
configuration for your application -->
<openidConnectProvider id="OP"
oauthProviderRef="Oauth"
signatureAlgorithm="RS256"
issuerIdentifier="https://trustme"
jwkEnabled="true"/>
<oauthProvider id="Oauth" jwtAccessToken="true" httpsRequired="true" >
<localStore>
<client name="rp" secret="rpSecret" displayname="rp" resourceIds="abc123"
scope="openid profile scope1 email phone address" enabled="true">
<redirect>https://${env.EXTERNAL_IP_ADDR}</redirect>
<redirect>https://${env.EXTERNAL_IP_ADDR}:31015/oidcclient/redirect/rp</redirect>
</client>
</localStore>
</oauthProvider>
<!--
<logging traceSpecification="com.ibm.ws.security.oauth*=all:com.ibm.ws.security.openid*=all"
traceFileName="trace.log" maxFileSize="20" maxFiles="10" />
-->
</server>