congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
OAuth2AuthorizationCodeReactiveAuthenticationManager.onSuccess
Code IndexAdd Tabnine to your IDE (free)

How to use
onSuccess
method
in
org.springframework.security.oauth2.client.authentication.OAuth2AuthorizationCodeReactiveAuthenticationManager

Best Java code snippets using org.springframework.security.oauth2.client.authentication.OAuth2AuthorizationCodeReactiveAuthenticationManager.onSuccess (Showing top 2 results out of 315)

origin: spring-projects/spring-security

@Override
public Mono<Authentication> authenticate(Authentication authentication) {
  return Mono.defer(() -> {
    OAuth2AuthorizationCodeAuthenticationToken token = (OAuth2AuthorizationCodeAuthenticationToken) authentication;
    OAuth2AuthorizationExchangeValidator.validate(token.getAuthorizationExchange());
    OAuth2AuthorizationCodeGrantRequest authzRequest = new OAuth2AuthorizationCodeGrantRequest(
        token.getClientRegistration(),
        token.getAuthorizationExchange());
    return this.accessTokenResponseClient.getTokenResponse(authzRequest)
        .map(onSuccess(token));
  });
}
origin: apache/servicemix-bundles

@Override
public Mono<Authentication> authenticate(Authentication authentication) {
  return Mono.defer(() -> {
    OAuth2AuthorizationCodeAuthenticationToken token = (OAuth2AuthorizationCodeAuthenticationToken) authentication;
    OAuth2AuthorizationExchangeValidator.validate(token.getAuthorizationExchange());
    OAuth2AuthorizationCodeGrantRequest authzRequest = new OAuth2AuthorizationCodeGrantRequest(
        token.getClientRegistration(),
        token.getAuthorizationExchange());
    return this.accessTokenResponseClient.getTokenResponse(authzRequest)
        .map(onSuccess(token));
  });
}
org.springframework.security.oauth2.client.authenticationOAuth2AuthorizationCodeReactiveAuthenticationManageronSuccess

Popular methods of OAuth2AuthorizationCodeReactiveAuthenticationManager

  • <init>
  • authenticate

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • scheduleAtFixedRate (Timer)
  • runOnUiThread (Activity)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • JLabel (javax.swing)
  • JOptionPane (javax.swing)
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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