Registry / auth / spring-security-oauth2-resource-server

spring-security-oauth2-resource-server

JSON →
library7.0.5javamavenunverified

Provides OAuth2 resource server support for Spring Security, enabling token-based authentication and authorization.

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

BearerTokenAuthenticationToken
org.springframework.security.oauth2.server.resource.authentication.BearerTokenAuthenticationToken

Create a BearerTokenAuthenticationToken to represent an OAuth2 bearer token.

import org.springframework.security.oauth2.server.resource.authentication.BearerTokenAuthenticationToken; BearerTokenAuthenticationToken token = new BearerTokenAuthenticationToken("your-token");
Debug
Known issues
breakingSpring Security 5.x and 6.x have different package structures; ensure compatibility with your Spring Boot version.
fix
Use the correct version of spring-security-oauth2-resource-server matching your Spring Boot version (e.g., 5.x for Boot 2.x, 6.x for Boot 3.x).
affects: >=5.0.0 <6.0.0
Upgrade
Version history
7.0.5latest on Maven
Audit
Dependencies

No dependency data recorded yet.

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