Infinite redirect issue fully fixed, with our custom urls for the authorization and token endpoints. See issue #8.
parent
67edc1c191
commit
5d78bc4e0a
|
@ -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>
|
||||
|
||||
|
|
|
@ -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