Removing our custom authorization endpoint and token endpoint urls, as well as the filter required by those custom urls (in web.xml), fixes the infinite redirect problem. This has been submitted as an issue to the SECOAUTH team.
parent
2fc4ce177c
commit
69dc1fe361
|
@ -53,10 +53,11 @@
|
|||
<!-- SECOAUTH Authorization Server, with our custom token granter plugged in -->
|
||||
<oauth:authorization-server client-details-service-ref="defaultOAuth2ClientDetailsEntityService"
|
||||
token-services-ref="defaultOAuth2ProviderTokenService" token-granter-ref="connectAuthCodeTokenGranter"
|
||||
user-approval-handler-ref="userApprovalHandler"
|
||||
authorization-endpoint-url="/openidconnect/auth" token-endpoint-url="/openidconnect/token"
|
||||
user-approval-page="redirect:/oauth/confirm_access"
|
||||
>
|
||||
user-approval-handler-ref="userApprovalHandler">
|
||||
|
||||
<!-- authorization-endpoint-url="/openidconnect/auth" token-endpoint-url="/openidconnect/token" -->
|
||||
<!-- user-approval-page="redirect:/oauth/confirm_access" -->
|
||||
<!-- > -->
|
||||
<oauth:authorization-code authorization-code-services-ref="authCodeServices" />
|
||||
</oauth:authorization-server>
|
||||
|
||||
|
|
|
@ -17,19 +17,19 @@
|
|||
</listener>
|
||||
|
||||
<!-- Since we defined a custom authorization-endpoint-url, we need an additional filter: -->
|
||||
<filter>
|
||||
<filter-name>oauth2EndpointUrlFilter</filter-name>
|
||||
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
|
||||
<init-param>
|
||||
<param-name>contextAttribute</param-name>
|
||||
<param-value>org.springframework.web.servlet.FrameworkServlet.CONTEXT.appServlet</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
<!-- <filter> -->
|
||||
<!-- <filter-name>oauth2EndpointUrlFilter</filter-name> -->
|
||||
<!-- <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> -->
|
||||
<!-- <init-param> -->
|
||||
<!-- <param-name>contextAttribute</param-name> -->
|
||||
<!-- <param-value>org.springframework.web.servlet.FrameworkServlet.CONTEXT.appServlet</param-value> -->
|
||||
<!-- </init-param> -->
|
||||
<!-- </filter> -->
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>oauth2EndpointUrlFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
<!-- <filter-mapping> -->
|
||||
<!-- <filter-name>oauth2EndpointUrlFilter</filter-name> -->
|
||||
<!-- <url-pattern>/*</url-pattern> -->
|
||||
<!-- </filter-mapping> -->
|
||||
|
||||
<!-- filter through Spring Security -->
|
||||
<filter>
|
||||
|
|
Loading…
Reference in New Issue