congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
AuthenticatedPrincipalServerOAuth2AuthorizedClientRepository.removeAuthorizedClient
Code IndexAdd Tabnine to your IDE (free)

How to use
removeAuthorizedClient
method
in
org.springframework.security.oauth2.client.web.server.AuthenticatedPrincipalServerOAuth2AuthorizedClientRepository

Best Java code snippets using org.springframework.security.oauth2.client.web.server.AuthenticatedPrincipalServerOAuth2AuthorizedClientRepository.removeAuthorizedClient (Showing top 2 results out of 315)

origin: spring-projects/spring-security

@Test
public void removeAuthorizedClientWhenAnonymousPrincipalThenRemoveFromAnonymousRepository() {
  when(this.anonymousAuthorizedClientRepository.removeAuthorizedClient(any(), any(), any())).thenReturn(Mono.empty());
  Authentication authentication = this.createAnonymousPrincipal();
  this.authorizedClientRepository.removeAuthorizedClient(this.registrationId, authentication, this.exchange).block();
  verify(this.anonymousAuthorizedClientRepository).removeAuthorizedClient(this.registrationId, authentication, this.exchange);
}
origin: spring-projects/spring-security

@Test
public void removeAuthorizedClientWhenAuthenticatedPrincipalThenRemoveFromService() {
  when(this.authorizedClientService.removeAuthorizedClient(any(), any())).thenReturn(Mono.empty());
  Authentication authentication = this.createAuthenticatedPrincipal();
  this.authorizedClientRepository.removeAuthorizedClient(this.registrationId, authentication, this.exchange).block();
  verify(this.authorizedClientService).removeAuthorizedClient(this.registrationId, this.principalName);
}
org.springframework.security.oauth2.client.web.serverAuthenticatedPrincipalServerOAuth2AuthorizedClientRepositoryremoveAuthorizedClient

Popular methods of AuthenticatedPrincipalServerOAuth2AuthorizedClientRepository

  • <init>
  • isPrincipalAuthenticated
  • loadAuthorizedClient
  • saveAuthorizedClient
  • setAnonymousAuthorizedClientRepository
    Sets the ServerOAuth2AuthorizedClientRepository used for requests that are unauthenticated (or anony

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • PhpStorm for WordPress
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