-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
in: coreAn issue in spring-security-coreAn issue in spring-security-corestatus: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytype: bugA general bugA general bugtype: jiraAn issue that was migrated from JIRAAn issue that was migrated from JIRA
Description
Drew Mazurek (Migrated from SEC-1745) said:
Using the SavedRequestAwareAuthenticationSuccessHandler configured as below, if the user's servlet session times out, after reauthentication Spring Security does not redirect the user to the URL he was trying to access. It instead sends him to the defaultTargetUrl.
<form-login login-page="/login" authentication-success-handler-ref="savedRequestAwareAuthenticationHandler"
authentication-failure-url="/login?authFailed=true"/>
<beans:bean id="savedRequestAwareAuthenticationHandler" class="org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler">
<beans:property name="defaultTargetUrl" value="/start" />
<beans:property name="targetUrlParameter" value="target" />
</beans:bean>
Metadata
Metadata
Assignees
Labels
in: coreAn issue in spring-security-coreAn issue in spring-security-corestatus: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytype: bugA general bugA general bugtype: jiraAn issue that was migrated from JIRAAn issue that was migrated from JIRA