Tabnine Logo
ServerHttpSecurity$OAuth2LoginSpec.getOauth2UserService
Code IndexAdd Tabnine 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)

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

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • requestLocationUpdates (LocationManager)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JLabel (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Sublime Text 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