Skip to content

Commit 49dbb94

Browse files
committed
fix(examples): fix introspection mismatching issuer error
1 parent f667146 commit 49dbb94

File tree

3 files changed

+9
-24
lines changed

3 files changed

+9
-24
lines changed

examples/oidc/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ services:
2727
volumes:
2828
- ./james/usersrepository.xml:/root/conf/usersrepository.xml
2929
- ./james/jmap.properties:/root/conf/jmap.properties
30+
- ./james/imapserver.xml:/root/conf/imapserver.xml
31+
- ./james/smtpserver.xml:/root/conf/smtpserver.xml
3032
ports:
3133
- "8000:8000"
3234
healthcheck:
@@ -46,9 +48,7 @@ services:
4648
- KEYCLOAK_PASSWORD=admin
4749
- KEYCLOAK_IMPORT=/tmp/realm-oidc.json
4850
networks:
49-
james:
50-
aliases:
51-
- keycloak
51+
- james
5252

5353
ldap:
5454
container_name: ldap

examples/oidc/james/imapserver.xml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
<jmxName>imapserver</jmxName>
55
<bind>0.0.0.0:143</bind>
66
<connectionBacklog>200</connectionBacklog>
7-
<tls socketTLS="false" startTLS="false">
8-
<keystore>file://conf/keystore</keystore>
9-
<keystoreType>PKCS12</keystoreType>
10-
<secret>james72laBalle</secret>
11-
<provider>org.bouncycastle.jce.provider.BouncyCastleProvider</provider>
12-
</tls>
137
<connectionLimit>0</connectionLimit>
148
<connectionLimitPerIP>0</connectionLimitPerIP>
159
<idleTimeInterval>120</idleTimeInterval>
@@ -18,12 +12,12 @@
1812
<auth>
1913
<plainAuthEnabled>true</plainAuthEnabled>
2014
<oidc>
21-
<oidcConfigurationURL>http://keycloak:8080/auth/realms/oidc/.well-known/openid-configuration</oidcConfigurationURL>
22-
<jwksURL>http://keycloak:8080/auth/realms/oidc/protocol/openid-connect/certs</jwksURL>
15+
<oidcConfigurationURL>http://sso.example.com:8080/auth/realms/oidc/.well-known/openid-configuration</oidcConfigurationURL>
16+
<jwksURL>http://sso.example.com:8080/auth/realms/oidc/protocol/openid-connect/certs</jwksURL>
2317
<claim>email</claim>
2418
<scope>openid profile email</scope>
2519
<introspection>
26-
<url>http://keycloak:8080/auth/realms/oidc/protocol/openid-connect/token/introspect</url>
20+
<url>http://sso.example.com:8080/auth/realms/oidc/protocol/openid-connect/token/introspect</url>
2721
<auth>Basic amFtZXMtdGh1bmRlcmJpcmQ6WHc5aHQxdmVUdTBUazVzTU15MDNQZHpZM0FpRnZzc3c=</auth>
2822
</introspection>
2923
</oidc>

examples/oidc/james/smtpserver.xml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,19 @@
44
<jmxName>smtpserver</jmxName>
55
<bind>0.0.0.0:587</bind>
66
<connectionBacklog>200</connectionBacklog>
7-
<tls socketTLS="false" startTLS="false">
8-
<keystore>file://conf/keystore</keystore>
9-
<keystoreType>PKCS12</keystoreType>
10-
<secret>james72laBalle</secret>
11-
<provider>org.bouncycastle.jce.provider.BouncyCastleProvider</provider>
12-
<algorithm>SunX509</algorithm>
13-
</tls>
147
<connectiontimeout>360</connectiontimeout>
158
<connectionLimit>0</connectionLimit>
169
<connectionLimitPerIP>0</connectionLimitPerIP>
1710
<auth>
1811
<announce>forUnauthorizedAddresses</announce>
1912
<plainAuthEnabled>true</plainAuthEnabled>
2013
<oidc>
21-
<oidcConfigurationURL>http://keycloak:8080/auth/realms/oidc/.well-known/openid-configuration</oidcConfigurationURL>
22-
<jwksURL>http://keycloak:8080/auth/realms/oidc/protocol/openid-connect/certs</jwksURL>
14+
<oidcConfigurationURL>http://sso.example.com:8080/auth/realms/oidc/.well-known/openid-configuration</oidcConfigurationURL>
15+
<jwksURL>http://sso.example.com:8080/auth/realms/oidc/protocol/openid-connect/certs</jwksURL>
2316
<claim>email</claim>
2417
<scope>openid profile email</scope>
2518
<introspection>
26-
<url>http://keycloak:8080/auth/realms/oidc/protocol/openid-connect/token/introspect</url>
19+
<url>http://sso.example.com:8080/auth/realms/oidc/protocol/openid-connect/token/introspect</url>
2720
<auth>Basic amFtZXMtdGh1bmRlcmJpcmQ6WHc5aHQxdmVUdTBUazVzTU15MDNQZHpZM0FpRnZzc3c=</auth>
2821
</introspection>
2922
</oidc>
@@ -39,5 +32,3 @@
3932
</handlerchain>
4033
</smtpserver>
4134
</smtpservers>
42-
43-

0 commit comments

Comments
 (0)