Examples of RedirectStrategy


Examples of org.springframework.security.web.RedirectStrategy

      protected String getUserAuthorizationRedirectURL(ProtectedResourceDetails details,
          OAuthConsumerToken requestToken, String callbackURL) {
        return callbackURL + "&" + requestToken.getResourceId();
      }
    };
    filter.setRedirectStrategy(new RedirectStrategy() {
      public void sendRedirect(HttpServletRequest request, HttpServletResponse response, String url)
          throws IOException {
        response.sendRedirect(url);
      }
    });
View Full Code Here

Examples of org.springframework.security.web.RedirectStrategy

        Authentication auth = new TestingAuthenticationToken(user, null);

        AuthenticationException exception = new BadCredentialsException("Password doesn't match!");
        exception.setAuthentication(auth);

        RedirectStrategy redirectStrategy = mock(RedirectStrategy.class);
        handler.setRedirectStrategy(redirectStrategy);
        handler.setDefaultFailureUrl("/badlogin?login_error=1");
        handler.setUsernameSessionAttribute("j_user_name");

        HttpServletRequest request = new MockHttpServletRequest();
View Full Code Here

Examples of org.springframework.security.web.RedirectStrategy

    }

    @Test
    public void shouldRedirectToDefaultTargetUrlWhenNoOpenIdRequestGiven() throws Exception {
        OpenIdAuthenticationSuccessHandler handler = new OpenIdAuthenticationSuccessHandler(openIdManagerMock);
        RedirectStrategy strategyMock = Mockito.mock(RedirectStrategy.class);
        handler.setDefaultTargetUrl("/loginFailed.html");
        handler.setRedirectStrategy(strategyMock);
        when(openIdManagerMock.isOpenIdRequest(requestMock)).thenReturn(false);

        handler.onAuthenticationSuccess(requestMock, responseMock, authenticationMock);
View Full Code Here

Examples of org.wicketstuff.mergedresources.util.RedirectStrategy

   * @param redirectPath
   *            the path to redirect to
   * @return a new {@link IRequestTargetUrlCodingStrategy}
   */
  protected IRequestTargetUrlCodingStrategy newRedirectStrategy(String mountPath, String redirectPath) {
    return new RedirectStrategy(mountPath, redirectPath);
  }
View Full Code Here

Examples of org.wicketstuff.mergedresources.util.RedirectStrategy

   * @param mountPath the path to redirect from
   * @param redirectPath the path to redirect to
   * @return a new {@link IRequestTargetUrlCodingStrategy}
   */
  protected IRequestTargetUrlCodingStrategy newRedirectStrategy(String mountPath, String redirectPath) {
    return new RedirectStrategy(mountPath, redirectPath);
  }
View Full Code Here

Examples of org.wicketstuff.mergedresources.util.RedirectStrategy

   * @param redirectPath
   *            the path to redirect to
   * @return a new {@link IRequestTargetUrlCodingStrategy}
   */
  protected IRequestTargetUrlCodingStrategy newRedirectStrategy(String mountPath, String redirectPath) {
    return new RedirectStrategy(mountPath, redirectPath);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.