This commit fixes the infinite redirect, somewhat. See updated issue #8.
parent
17f6e2a2fb
commit
2fc4ce177c
|
@ -34,7 +34,7 @@ public class OAuthConfirmationController {
|
|||
this.clientService = clientService;
|
||||
}
|
||||
|
||||
@PreAuthorize("hasRole('ROLE_USER')")
|
||||
//@PreAuthorize("hasRole('ROLE_USER')")
|
||||
@RequestMapping("/oauth/confirm_access")
|
||||
public ModelAndView confimAccess(@ModelAttribute AuthorizationRequest clientAuth,
|
||||
ModelAndView modelAndView) {
|
||||
|
|
|
@ -54,7 +54,9 @@
|
|||
<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">
|
||||
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>
|
||||
|
||||
|
|
|
@ -23,7 +23,8 @@
|
|||
|
||||
<security:global-method-security pre-post-annotations="enabled" proxy-target-class="true" authentication-manager-ref="springSecurityAuthenticationManager"/>
|
||||
|
||||
<http pattern="/oauth/token" create-session="stateless" authentication-manager-ref="clientAuthenticationManager"
|
||||
<!-- 4/11 AANGANES trying:remove "create-session="stateless"" from below statement -->
|
||||
<http pattern="/oauth/token" authentication-manager-ref="clientAuthenticationManager"
|
||||
xmlns="http://www.springframework.org/schema/security">
|
||||
<intercept-url pattern="/oauth/token" access="IS_AUTHENTICATED_FULLY" />
|
||||
<anonymous enabled="false" />
|
||||
|
|
Loading…
Reference in New Issue