Implement token introspection and end session endpoints#279
Merged
Conversation
…astructure - Add RFC 7662 Token Introspection endpoint (#194) - Add OIDC RP-Initiated Logout endpoint (#196) - Bump Exposed ORM 0.61.0 → 1.1.1 and Shadow 9.0.0-beta4 → 9.3.2 - Extract JwtProvider utility for shared JWT algorithm/verifier caching - Cache KeyUtils.getKeys() to avoid repeated PEM file I/O - Commonize client authentication into OAuthValidation - Fix JWT.decode() security issue in RevokeRouter (use lenient verifier) - Update OIDC Discovery with introspection and end_session endpoints
Contributor
🚀 Preview of MineAuth📦 Preview JARs (Release Page)
📖 Documentation & ReportsAvailable for 7 days (until 2026-03-16)
🧪 Test Summary
|
Contributor
🚀 Preview of MineAuth📦 Preview JARs (Release Page)
📖 Documentation & ReportsAvailable for 7 days (until 2026-03-16)
🧪 Test Summary
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
POST /oauth2/introspectGET /oauth2/end_sessionwith optional redirectJwtProvider: Shared JWT algorithm/verifier caching (eliminates redundant key loading and verifier construction across 6 files)KeyUtils.getKeys()caching: Lazy-cached PEM file I/O (was reading from disk on every call, up to 8× per request)OAuthValidation(extractClientCredentials,authenticateConfidentialClient,authenticateClient)JWT.decode()in RevokeRouter with signature-verifyinglenientVerifierintrospection_endpointandend_session_endpointCloses #194
Closes #196
Test plan
POST /oauth2/introspectreturnsactive=truewith metadata for valid tokensPOST /oauth2/introspectreturnsactive=falsefor expired/revoked/invalid tokensGET /oauth2/end_sessionredirects with validid_token_hintandpost_logout_redirect_uriGET /oauth2/end_sessionrejects invalidid_token_hint/.well-known/openid-configurationincludes new endpoints