Package org.apache.juneau.rest.server.auth.oauth
package org.apache.juneau.rest.server.auth.oauth
OAuth 2.0 / OIDC integration for the Juneau REST server.
Layered on the AuthFilter framework and the
TokenValidator SPI. Wraps Nimbus's
oauth2-oidc-sdk (Apache 2.0) for the introspection, flow, and discovery wire shapes.
The Nimbus dependency is declared provided-scope in juneau-rest-server-auth-oauth's POM, so
it never bleeds into the dependency tree of an upstream module. Consumers who want OAuth functionality
declare com.nimbusds:oauth2-oidc-sdk themselves at runtime.
Key types
OAuthIntrospectionValidator— opaque-token validator wrapping Nimbus's RFC 7662 introspection client.OAuthFilter— servlet filter that recognizesAuthorization: Bearer ...OAuth tokens.TokenCache— cache SPI used by the validator (and the caching flow decorator); default implBoundedLruTokenCache.CachingClientCredentialsFlow— server-side caching decorator layering aTokenCacheover the role-neutralOAuthClientCredentialsFlow.
See Also:
- Since:
- 10.0.0
-
ClassDescriptionThread-safe bounded LRU implementation of
TokenCache.Server-side caching decorator layering an optionalTokenCacheover the role-neutralOAuthClientCredentialsFlow.Builder.AuthFilterthat authenticates requests carrying an OAuth 2.0 / OIDC access token via the standard RFC 6750 Bearer Token scheme.Builder.TokenValidatorthat validates opaque OAuth 2.0 access tokens via the RFC 7662 Token Introspection endpoint.Builder forOAuthIntrospectionValidator.SPI for caching the result of an OAuth introspection or token-acquisition call.