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 --> <!-- SECOAUTH Authorization Server, with our custom token granter plugged in -->
<oauth:authorization-server client-details-service-ref="defaultOAuth2ClientDetailsEntityService" <oauth:authorization-server client-details-service-ref="defaultOAuth2ClientDetailsEntityService"
token-services-ref="defaultOAuth2ProviderTokenService" token-granter-ref="connectAuthCodeTokenGranter" token-services-ref="defaultOAuth2ProviderTokenService" token-granter-ref="connectAuthCodeTokenGranter"
user-approval-handler-ref="userApprovalHandler"> user-approval-handler-ref="userApprovalHandler"
authorization-endpoint-url="/openidconnect/auth" token-endpoint-url="/openidconnect/token"
<!-- 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-code authorization-code-services-ref="authCodeServices" />
</oauth:authorization-server> </oauth:authorization-server>

View File

@ -17,19 +17,19 @@
</listener> </listener>
<!-- Since we defined a custom authorization-endpoint-url, we need an additional filter: --> <!-- Since we defined a custom authorization-endpoint-url, we need an additional filter: -->
<!-- <filter> --> <filter>
<!-- <filter-name>oauth2EndpointUrlFilter</filter-name> --> <filter-name>oauth2EndpointUrlFilter</filter-name>
<!-- <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> --> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
<!-- <init-param> --> <init-param>
<!-- <param-name>contextAttribute</param-name> --> <param-name>contextAttribute</param-name>
<!-- <param-value>org.springframework.web.servlet.FrameworkServlet.CONTEXT.appServlet</param-value> --> <param-value>org.springframework.web.servlet.FrameworkServlet.CONTEXT.appServlet</param-value>
<!-- </init-param> --> </init-param>
<!-- </filter> --> </filter>
<!-- <filter-mapping> --> <filter-mapping>
<!-- <filter-name>oauth2EndpointUrlFilter</filter-name> --> <filter-name>oauth2EndpointUrlFilter</filter-name>
<!-- <url-pattern>/*</url-pattern> --> <url-pattern>/*</url-pattern>
<!-- </filter-mapping> --> </filter-mapping>
<!-- filter through Spring Security --> <!-- filter through Spring Security -->
<filter> <filter>