Registry / auth / spring-boot-starter-oauth2-client

spring-boot-starter-oauth2-client

JSON →
library4.0.6javamavenunverified

Starter for using Spring Security's OAuth2/OpenID Connect client features in Spring Boot.

<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-oauth2-client</artifactId> <version>4.0.6</version> </dependency>
INSTALL
IMPORT
SIG · SPRING-BOOT-STARTE
S
spring-boot-starter-oauth2-client
authjavav4.0.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ClientRegistration
org.springframework.security.oauth2.client.registration.ClientRegistration

Configures an OAuth2 client registration.

import org.springframework.security.oauth2.client.registration.ClientRegistration; import org.springframework.security.oauth2.core.AuthorizationGrantType; ClientRegistration registration = ClientRegistration.withRegistrationId("my-client") .authorizationGrantType(AuthorizationGrantType.AUTHORIZATION_CODE) .clientId("client-id") .redirectUri("{baseUrl}/login/oauth2/code/{registrationId}") .authorizationUri("https://provider.com/oauth2/authorize") .tokenUri("https://provider.com/oauth2/token") .build();
Debug
Known issues
breakingThis starter is deprecated in favor of spring-boot-starter-security-oauth2-client.
fix
Replace dependency with org.springframework.boot:spring-boot-starter-security-oauth2-client.
affects: >=4.0.0
Upgrade
Version history
4.0.6latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
16
Resources
spring-boot-starter-oauth2-client — mvn dependency:get spring-boot-starter-oauth2-client · libregistry