Codota Logo
ServerHttpSecurity$OAuth2LoginSpec.getOauth2UserService
Code IndexAdd Codota to your IDE (free)

How to use
getOauth2UserService
method
in
org.springframework.security.config.web.server.ServerHttpSecurity$OAuth2LoginSpec

Best Java code snippets using org.springframework.security.config.web.server.ServerHttpSecurity$OAuth2LoginSpec.getOauth2UserService (Showing top 3 results out of 315)

  • Common ways to obtain ServerHttpSecurity$OAuth2LoginSpec
private void myMethod () {
ServerHttpSecurity$OAuth2LoginSpec s =
  • Codota Iconnew OAuth2LoginSpec()
  • Codota IconServerHttpSecurity serverHttpSecurity;serverHttpSecurity.oauth2Login()
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-security

private ReactiveAuthenticationManager createDefault() {
  WebClientReactiveAuthorizationCodeTokenResponseClient client = new WebClientReactiveAuthorizationCodeTokenResponseClient();
  ReactiveAuthenticationManager result = new OAuth2LoginReactiveAuthenticationManager(client, getOauth2UserService());
  boolean oidcAuthenticationProviderEnabled = ClassUtils.isPresent(
      "org.springframework.security.oauth2.jwt.JwtDecoder", this.getClass().getClassLoader());
  if (oidcAuthenticationProviderEnabled) {
    OidcAuthorizationCodeReactiveAuthenticationManager oidc =
        new OidcAuthorizationCodeReactiveAuthenticationManager(client, getOidcUserService());
    ResolvableType type = ResolvableType.forClassWithGenerics(
        ReactiveJwtDecoderFactory.class, ClientRegistration.class);
    ReactiveJwtDecoderFactory<ClientRegistration> jwtDecoderFactory = getBeanOrNull(type);
    if (jwtDecoderFactory != null) {
      oidc.setJwtDecoderFactory(jwtDecoderFactory);
    }
    result = new DelegatingReactiveAuthenticationManager(oidc, result);
  }
  return result;
}
origin: org.springframework.security/spring-security-config

private ReactiveAuthenticationManager createDefault() {
  WebClientReactiveAuthorizationCodeTokenResponseClient client = new WebClientReactiveAuthorizationCodeTokenResponseClient();
  ReactiveAuthenticationManager result = new OAuth2LoginReactiveAuthenticationManager(client, getOauth2UserService());
  boolean oidcAuthenticationProviderEnabled = ClassUtils.isPresent(
      "org.springframework.security.oauth2.jwt.JwtDecoder", this.getClass().getClassLoader());
  if (oidcAuthenticationProviderEnabled) {
    OidcAuthorizationCodeReactiveAuthenticationManager oidc = new OidcAuthorizationCodeReactiveAuthenticationManager(client, getOidcUserService());
    result = new DelegatingReactiveAuthenticationManager(oidc, result);
  }
  return result;
}
origin: apache/servicemix-bundles

private ReactiveAuthenticationManager createDefault() {
  WebClientReactiveAuthorizationCodeTokenResponseClient client = new WebClientReactiveAuthorizationCodeTokenResponseClient();
  ReactiveAuthenticationManager result = new OAuth2LoginReactiveAuthenticationManager(client, getOauth2UserService());
  boolean oidcAuthenticationProviderEnabled = ClassUtils.isPresent(
      "org.springframework.security.oauth2.jwt.JwtDecoder", this.getClass().getClassLoader());
  if (oidcAuthenticationProviderEnabled) {
    OidcAuthorizationCodeReactiveAuthenticationManager oidc = new OidcAuthorizationCodeReactiveAuthenticationManager(client, getOidcUserService());
    result = new DelegatingReactiveAuthenticationManager(oidc, result);
  }
  return result;
}
org.springframework.security.config.web.serverServerHttpSecurity$OAuth2LoginSpecgetOauth2UserService

Popular methods of ServerHttpSecurity$OAuth2LoginSpec

  • <init>
  • configure
  • createAttemptAuthenticationRequestMatcher
  • createDefault
  • getAuthenticationConverter
  • getAuthenticationManager
    Gets the ReactiveAuthenticationManager to use. First tries an explicitly configured manager, and def
  • getAuthorizedClientRepository
  • getAuthorizedClientService
  • getClientRegistrationRepository
  • getLinks
  • getOidcUserService
  • and
    Allows method chaining to continue configuring the ServerHttpSecurity
  • getOidcUserService,
  • and,
  • authenticationConverter,
  • authenticationManager,
  • authenticationMatcher,
  • authorizationRequestResolver,
  • getAuthenticationMatcher,
  • getRedirectWebFilter

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • getSharedPreferences (Context)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
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