Tabnine Logo
UsernamePasswordAuthenticationFilter.attemptAuthentication
Code IndexAdd Tabnine 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)

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

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • setContentView (Activity)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now