Registry / auth / spring-security-oauth2-autoconfigure

spring-security-oauth2-autoconfigure

JSON →
library2.6.8javamavenunverified

Auto-configuration for Spring Security OAuth2 client and resource server support.

<dependency> <groupId>org.springframework.security.oauth.boot</groupId> <artifactId>spring-security-oauth2-autoconfigure</artifactId> <version>2.6.8</version> </dependency>
INSTALL
IMPORT
SIG · SPRING-SECURITY-OA
S
spring-security-oauth2-autoconfigure
authjavav2.6.8
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.

OAuth2AuthenticationToken
org.springframework.security.oauth2.client.authentication.OAuth2AuthenticationToken

Retrieves the authenticated user's name from an OAuth2 token.

import org.springframework.security.oauth2.client.authentication.OAuth2AuthenticationToken; OAuth2AuthenticationToken token = (OAuth2AuthenticationToken) SecurityContextHolder.getContext().getAuthentication(); String name = token.getPrincipal().getName();
Debug
Known issues
breakingThis module is deprecated in favor of Spring Security 5's built-in OAuth2 support.
fix
Migrate to spring-security-oauth2-client and spring-security-oauth2-resource-server.
affects: >=2.6.0
Upgrade
Version history
2.6.8latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
spring-security-oauth2-autoconfigure — mvn dependency:get spring-security-oauth2-autoconfigure · libregistry