Registry / auth / spring-security-oauth2-core

spring-security-oauth2-core

JSON →
library7.0.5javamavenunverified

Core OAuth2 support for Spring Security, including client and resource server abstractions.

<dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-oauth2-core</artifactId> <version>7.0.5</version> </dependency>
INSTALL
IMPORT
SIG · SPRING-SECURITY-OA
S
spring-security-oauth2-core
authjavav7.0.5
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.

OAuth2AuthorizedClient
org.springframework.security.oauth2.client.OAuth2AuthorizedClient

Shows how to retrieve an OAuth2 authorized client and its access token.

import org.springframework.security.oauth2.client.OAuth2AuthorizedClient; import org.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepository; OAuth2AuthorizedClient client = repository.loadAuthorizedClient("my-client", principal, request); String token = client.getAccessToken().getTokenValue();
Debug
Known issues
breakingSpring Security 7.x requires Java 17+ and may have breaking changes from 6.x.
fix
Check migration guide from Spring Security 6.x to 7.x.
affects: >=7.0.0
Upgrade
Version history
7.0.5latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Amazon
1
Resources
spring-security-oauth2-core — mvn dependency:get spring-security-oauth2-core · libregistry