Skip to content
This repository was archived by the owner on Sep 28, 2022. It is now read-only.

Commit fa96038

Browse files
author
Dominik František Bučík
authored
refactor: 💡 use refs for interceptors (#25)
1 parent 60baf14 commit fa96038

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

openid-connect-server-webapp/src/main/webapp/WEB-INF/application-context.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
</mvc:message-converters>
4545
</mvc:annotation-driven>
4646

47+
<bean id="userInfoInterceptor" class="org.mitre.openid.connect.web.UserInfoInterceptor" />
48+
<bean id="serverConfigInterceptor" class="org.mitre.openid.connect.web.ServerConfigInterceptor" />
4749
<mvc:interceptors>
4850
<mvc:interceptor>
4951
<!-- Exclude APIs and other machine-facing endpoints from these interceptors -->
@@ -61,7 +63,7 @@
6163
<mvc:exclude-mapping path="/#{T(org.mitre.oauth2.web.RevocationEndpoint).URL}**" />
6264

6365
<!-- Inject the UserInfo into the response -->
64-
<bean id="userInfoInterceptor" class="org.mitre.openid.connect.web.UserInfoInterceptor" />
66+
<ref bean="userInfoInterceptor"/>
6567
</mvc:interceptor>
6668
<mvc:interceptor>
6769
<!-- Exclude APIs and other machine-facing endpoints from these interceptors -->
@@ -78,7 +80,7 @@
7880
<mvc:exclude-mapping path="/#{T(org.mitre.oauth2.web.IntrospectionEndpoint).URL}**" />
7981
<mvc:exclude-mapping path="/#{T(org.mitre.oauth2.web.RevocationEndpoint).URL}**" />
8082
<!-- Inject the server configuration into the response -->
81-
<bean id="serverConfigInterceptor" class="org.mitre.openid.connect.web.ServerConfigInterceptor" />
83+
<ref bean="serverConfigInterceptor"/>
8284
</mvc:interceptor>
8385
</mvc:interceptors>
8486

0 commit comments

Comments
 (0)