Browse Source

Activate locale change interceptor and make it overrideable.

pull/763/head
Fredrik Jönsson 10 years ago
parent
commit
7861300d72
  1. 14
      openid-connect-server-webapp/src/main/webapp/WEB-INF/application-context.xml

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

@ -41,8 +41,15 @@
</mvc:message-converters>
</mvc:annotation-driven>
<bean id="localeResolver" class="org.springframework.web.servlet.i18n.FixedLocaleResolver">
<property name="defaultLocale" value="en" />
</bean>
<bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor" />
<mvc:interceptors>
<!-- Inject the UserInfo into the current context -->
<ref bean="localeChangeInterceptor"/>
<bean id="userInfoInterceptor" class="org.mitre.openid.connect.web.UserInfoInterceptor" />
<bean id="serverConfigInterceptor" class="org.mitre.openid.connect.web.ServerConfigInterceptor" />
</mvc:interceptors>
@ -201,13 +208,6 @@
<bean id="clientAssertionAuthenticationProvider" class="org.mitre.openid.connect.assertion.JwtBearerAuthenticationProvider" />
<!-- <bean id="localeResolver" class="org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver"> -->
<bean id="localeResolver" class="org.springframework.web.servlet.i18n.FixedLocaleResolver">
<property name="defaultLocale" value="en" />
</bean>
<bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor" />
<bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
<property name="basenames">
<list>

Loading…
Cancel
Save