Codota Logo
UsernamePasswordAuthenticationFilter.attemptAuthentication
Code IndexAdd Codota to your IDE (free)

How to use
attemptAuthentication
method
in
org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter

Best Java code snippets using org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter.attemptAuthentication (Showing top 5 results out of 315)

  • Common ways to obtain UsernamePasswordAuthenticationFilter
private void myMethod () {
UsernamePasswordAuthenticationFilter u =
  • Codota Iconnew UsernamePasswordAuthenticationFilter()
  • Smart code suggestions by Codota
}
origin: pl.edu.icm.synat/synat-portal-core

@Override
public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)
    throws AuthenticationException {
  validateLogin(request);
  validatePassword(request);
  return super.attemptAuthentication(request, response);
}
origin: stormpath/stormpath-sdk-java

  request.getHeader("accept").contains(MediaType.APPLICATION_FORM_URLENCODED_VALUE) ||
  (request.getContentType() != null && request.getContentType().contains(MediaType.APPLICATION_FORM_URLENCODED_VALUE))) {
return super.attemptAuthentication(request, response);
origin: com.stormpath.spring/stormpath-spring-security-webmvc

  request.getHeader("accept").contains(MediaType.APPLICATION_FORM_URLENCODED_VALUE) ||
  (request.getContentType() != null && request.getContentType().contains(MediaType.APPLICATION_FORM_URLENCODED_VALUE))) {
return super.attemptAuthentication(request, response);
origin: fluxtream/fluxtream-app

@Override
public Authentication attemptAuthentication(
    javax.servlet.http.HttpServletRequest request,
    javax.servlet.http.HttpServletResponse response)
    throws AuthenticationException {
  final String autoLoginToken = request.getParameter("autoLoginToken");
  if (autoLoginToken !=null) {
    final Guest one = jpaDaoService.findOne("guest.byAutoLoginToken", Guest.class, autoLoginToken);
    if (one!=null) {
      if ((System.currentTimeMillis()-one.autoLoginTokenTimestamp)>60000) {
        throw new RuntimeException("Token is too old!");
      }
      final FlxUserDetails details = new FlxUserDetails(one);
      final UsernamePasswordAuthenticationToken authRequest =
          new UsernamePasswordAuthenticationToken(details, one.password, getAuthorities(one));
      authRequest.setDetails(details);
      jpaDaoService.execute("UPDATE Guest SET autoLoginToken=null WHERE autoLoginToken='" + autoLoginToken + "'");
      return authRequest;
    } else
      throw new RuntimeException("No such autologin token: " + autoLoginToken);
  }
  Authentication authentication = null;
  try { authentication = super.attemptAuthentication(request, response);}
  catch (AuthenticationException failed) {
    authentication = attemptAuthenticationWithEmailAddress(request);
  }
  return authentication;
}
origin: com.centit.framework/framework-security

auth = super.attemptAuthentication(request, response);
org.springframework.security.web.authenticationUsernamePasswordAuthenticationFilterattemptAuthentication

Popular methods of UsernamePasswordAuthenticationFilter

  • setPasswordParameter
  • setUsernameParameter
  • <init>
  • getPasswordParameter
  • getUsernameParameter
  • setAuthenticationDetailsSource
  • setAuthenticationFailureHandler
  • setAuthenticationManager
  • setAuthenticationSuccessHandler
  • setAllowSessionCreation
  • setRememberMeServices
  • setRequiresAuthenticationRequestMatcher
  • setRememberMeServices,
  • setRequiresAuthenticationRequestMatcher,
  • afterPropertiesSet,
  • doFilter,
  • getAuthenticationManager,
  • getFailureHandler,
  • getRememberMeServices,
  • getSuccessHandler,
  • obtainPassword

Popular in Java

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • startActivity (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JOptionPane (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now