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.

pull/59/head
Amanda Anganes 2012-04-11 17:08:15 -04:00
parent 2fc4ce177c
commit 69dc1fe361
2 changed files with 17 additions and 16 deletions

View File

@ -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>

View File

@ -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>