Infinite redirect issue fully fixed, with our custom urls for the authorization and token endpoints. See issue #8.

pull/59/head
Amanda Anganes 2012-04-16 12:37:14 -04:00
parent 67edc1c191
commit 5d78bc4e0a
2 changed files with 15 additions and 17 deletions

View File

@ -53,11 +53,9 @@
<!-- 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"
>
<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>