congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Reading from database using SQL prepared statement
  • findViewById (Activity)
  • getContentResolver (Context)
  • getResourceAsStream (ClassLoader)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top plugins for Android Studio
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