/** * Specifies the URL used to authenticate OpenID requests. If the * {@link HttpServletRequest} matches this URL the {@link OpenIDAuthenticationFilter} * will attempt to authenticate the request. The default is "/login/openid". * * @param loginProcessingUrl the URL used to perform authentication * @return the {@link OpenIDLoginConfigurer} for additional customization */ @Override public OpenIDLoginConfigurer<H> loginProcessingUrl(String loginProcessingUrl) { return super.loginProcessingUrl(loginProcessingUrl); }
/** * Creates a new instance * @param authenticationFilter the {@link AbstractAuthenticationProcessingFilter} to * use * @param defaultLoginProcessingUrl the default URL to use for * {@link #loginProcessingUrl(String)} */ protected AbstractAuthenticationFilterConfigurer(F authenticationFilter, String defaultLoginProcessingUrl) { this(); this.authFilter = authenticationFilter; if (defaultLoginProcessingUrl != null) { loginProcessingUrl(defaultLoginProcessingUrl); } }
/** * Updates the default values for authentication. * * @throws Exception */ protected final void updateAuthenticationDefaults() { if (loginProcessingUrl == null) { loginProcessingUrl(loginPage); } if (failureHandler == null) { failureUrl(loginPage + "?error"); } final LogoutConfigurer<B> logoutConfigurer = getBuilder().getConfigurer( LogoutConfigurer.class); if (logoutConfigurer != null && !logoutConfigurer.isCustomLogoutSuccess()) { logoutConfigurer.logoutSuccessUrl(loginPage + "?logout"); } }
/** * Specifies the URL used to authenticate OpenID requests. If the * {@link HttpServletRequest} matches this URL the {@link OpenIDAuthenticationFilter} * will attempt to authenticate the request. The default is "/login/openid". * * @param loginProcessingUrl the URL used to perform authentication * @return the {@link OpenIDLoginConfigurer} for additional customization */ @Override public OpenIDLoginConfigurer<H> loginProcessingUrl(String loginProcessingUrl) { return super.loginProcessingUrl(loginProcessingUrl); }
/** * Creates a new instance * @param authenticationFilter the {@link AbstractAuthenticationProcessingFilter} to * use * @param defaultLoginProcessingUrl the default URL to use for * {@link #loginProcessingUrl(String)} */ protected AbstractAuthenticationFilterConfigurer(F authenticationFilter, String defaultLoginProcessingUrl) { this(); this.authFilter = authenticationFilter; if (defaultLoginProcessingUrl != null) { loginProcessingUrl(defaultLoginProcessingUrl); } }
this.loginProcessingUrl); this.setAuthenticationFilter(authenticationFilter); super.loginProcessingUrl(this.loginProcessingUrl); RequestMatcher authenticationNullMatcher = request -> SecurityContextHolder.getContext().getAuthentication() == null; authenticationFilter.setRequiresAuthenticationRequestMatcher(new AndRequestMatcher(createLoginProcessingUrlMatcher(this.loginProcessingUrl),
/** * Updates the default values for authentication. * * @throws Exception */ protected final void updateAuthenticationDefaults() { if (loginProcessingUrl == null) { loginProcessingUrl(loginPage); } if (failureHandler == null) { failureUrl(loginPage + "?error"); } final LogoutConfigurer<B> logoutConfigurer = getBuilder().getConfigurer( LogoutConfigurer.class); if (logoutConfigurer != null && !logoutConfigurer.isCustomLogoutSuccess()) { logoutConfigurer.logoutSuccessUrl(loginPage + "?logout"); } }
/** * Specifies the URL used to authenticate OpenID requests. If the * {@link HttpServletRequest} matches this URL the {@link OpenIDAuthenticationFilter} * will attempt to authenticate the request. The default is "/login/openid". * * @param loginProcessingUrl the URL used to perform authentication * @return the {@link OpenIDLoginConfigurer} for additional customization */ @Override public OpenIDLoginConfigurer<H> loginProcessingUrl(String loginProcessingUrl) { return super.loginProcessingUrl(loginProcessingUrl); }
/** * Specifies the URL used to authenticate OpenID requests. If the {@link HttpServletRequest} * matches this URL the {@link OpenIDAuthenticationFilter} will attempt to * authenticate the request. The default is "/login/openid". * * @param loginUrl * the URL used to perform authentication * @return the {@link OpenIDLoginConfigurer} for additional customization */ public OpenIDLoginConfigurer<H> loginProcessingUrl(String loginProcessingUrl) { return super.loginProcessingUrl(loginProcessingUrl); }
/** * Creates a new instance * @param authenticationFilter the {@link AbstractAuthenticationProcessingFilter} to * use * @param defaultLoginProcessingUrl the default URL to use for * {@link #loginProcessingUrl(String)} */ protected AbstractAuthenticationFilterConfigurer(F authenticationFilter, String defaultLoginProcessingUrl) { this(); this.authFilter = authenticationFilter; if (defaultLoginProcessingUrl != null) { loginProcessingUrl(defaultLoginProcessingUrl); } }
this.loginProcessingUrl); this.setAuthenticationFilter(authenticationFilter); super.loginProcessingUrl(this.loginProcessingUrl); RequestMatcher authenticationNullMatcher = request -> SecurityContextHolder.getContext().getAuthentication() == null; authenticationFilter.setRequiresAuthenticationRequestMatcher(new AndRequestMatcher(createLoginProcessingUrlMatcher(this.loginProcessingUrl),
/** * Specifies the URL used to log in. If the request matches the URL and is an HTTP POST, the * {@link UsernamePasswordAuthenticationFilter} will attempt to authenticate * the request. Otherwise, if the request matches the URL the user will be sent to the login form. * * @param loginUrl the URL used to perform authentication * @return the {@link FormLoginConfigurer} for additional customization */ public final T loginUrl(String loginUrl) { loginProcessingUrl(loginUrl); return loginPage(loginUrl); }
/** * Creates a new instance * @param authenticationFilter the {@link AbstractAuthenticationProcessingFilter} to use * @param defaultLoginProcessingUrl the default URL to use for {@link #loginProcessingUrl(String)} */ protected AbstractAuthenticationFilterConfigurer(F authenticationFilter, String defaultLoginProcessingUrl) { this.authFilter = authenticationFilter; loginUrl("/login"); failureUrl("/login?error"); loginProcessingUrl(defaultLoginProcessingUrl); this.customLoginPage = false; }
/** * Updates the default values for authentication. * * @throws Exception */ protected final void updateAuthenticationDefaults() { if (loginProcessingUrl == null) { loginProcessingUrl(loginPage); } if (failureHandler == null) { failureUrl(loginPage + "?error"); } final LogoutConfigurer<B> logoutConfigurer = getBuilder().getConfigurer( LogoutConfigurer.class); if (logoutConfigurer != null && !logoutConfigurer.isCustomLogoutSuccess()) { logoutConfigurer.logoutSuccessUrl(loginPage + "?logout"); } }
this.loginProcessingUrl); this.setAuthenticationFilter(authenticationFilter); super.loginProcessingUrl(this.loginProcessingUrl); RequestMatcher authenticationNullMatcher = request -> SecurityContextHolder.getContext().getAuthentication() == null; authenticationFilter.setRequiresAuthenticationRequestMatcher(new AndRequestMatcher(createLoginProcessingUrlMatcher(this.loginProcessingUrl),