Tabnine Logo
OidcAuthorizationCodeAuthenticationProvider.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.springframework.security.oauth2.client.oidc.authentication.OidcAuthorizationCodeAuthenticationProvider
constructor

Best Java code snippets using org.springframework.security.oauth2.client.oidc.authentication.OidcAuthorizationCodeAuthenticationProvider.<init> (Showing top 6 results out of 315)

origin: spring-projects/spring-security

@Test
public void constructorWhenUserServiceIsNullThenThrowIllegalArgumentException() {
  this.exception.expect(IllegalArgumentException.class);
  new OidcAuthorizationCodeAuthenticationProvider(this.accessTokenResponseClient, null);
}
origin: spring-projects/spring-security

@Test
public void constructorWhenAccessTokenResponseClientIsNullThenThrowIllegalArgumentException() {
  this.exception.expect(IllegalArgumentException.class);
  new OidcAuthorizationCodeAuthenticationProvider(null, this.userService);
}
origin: spring-projects/spring-security

@Before
@SuppressWarnings("unchecked")
public void setUp() {
  this.clientRegistration = clientRegistration().clientId("client1").build();
  this.authorizationRequest = request().scope("openid", "profile", "email").build();
  this.authorizationResponse = success().build();
  this.authorizationExchange = new OAuth2AuthorizationExchange(this.authorizationRequest, this.authorizationResponse);
  this.accessTokenResponseClient = mock(OAuth2AccessTokenResponseClient.class);
  this.accessTokenResponse = this.accessTokenSuccessResponse();
  this.userService = mock(OAuth2UserService.class);
  this.authenticationProvider =
    new OidcAuthorizationCodeAuthenticationProvider(this.accessTokenResponseClient, this.userService);
  when(this.accessTokenResponseClient.getTokenResponse(any())).thenReturn(this.accessTokenResponse);
}
origin: spring-projects/spring-security

  new OidcAuthorizationCodeAuthenticationProvider(accessTokenResponseClient, oidcUserService);
JwtDecoderFactory<ClientRegistration> jwtDecoderFactory = this.getJwtDecoderFactoryBean();
if (jwtDecoderFactory != null) {
origin: org.springframework.security/spring-security-config

  new OidcAuthorizationCodeAuthenticationProvider(accessTokenResponseClient, oidcUserService);
if (userAuthoritiesMapper != null) {
  oidcAuthorizationCodeAuthenticationProvider.setAuthoritiesMapper(userAuthoritiesMapper);
origin: apache/servicemix-bundles

  new OidcAuthorizationCodeAuthenticationProvider(accessTokenResponseClient, oidcUserService);
if (userAuthoritiesMapper != null) {
  oidcAuthorizationCodeAuthenticationProvider.setAuthoritiesMapper(userAuthoritiesMapper);
org.springframework.security.oauth2.client.oidc.authenticationOidcAuthorizationCodeAuthenticationProvider<init>

Javadoc

Constructs an OidcAuthorizationCodeAuthenticationProvider using the provided parameters.

Popular methods of OidcAuthorizationCodeAuthenticationProvider

  • setAuthoritiesMapper
  • createOidcToken
  • setJwtDecoderFactory
    Sets the JwtDecoderFactory used for OidcIdToken signature verification. The factory returns a JwtDec
  • authenticate
  • getJwtDecoder
  • supports

Popular in Java

  • Parsing JSON documents to java classes using gson
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • getApplicationContext (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • JFrame (javax.swing)
  • 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
  • Runner (org.openjdk.jmh.runner)
  • 14 Best Plugins for Eclipse
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