Package org.apache.juneau.rest.auth.oauth.flow
package org.apache.juneau.rest.auth.oauth.flow
Role-neutral OAuth 2.0 grant-flow helpers.
Thin facades over Nimbus SDK grant types and TokenRequest. Each helper exposes a Juneau-style
builder and returns a Juneau-native OAuthToken record. These
primitives are role-neutral (neither client- nor server-specific) and are consumed by both the REST server
OAuth/OIDC modules and the MCP client-side token-acquisition layer.
Flow inventory
- Since:
- 10.0.0
-
ClassDescriptionHelpers shared across all flow types.Authorization-code grant (RFC 6749 §4.1) flow helper with mandatory PKCE per RFC 7636.Builder.Client-credentials grant (RFC 6749 §4.4) flow helper.Builder.Runtime exception thrown by any OAuth flow helper when the IdP rejects the request, the HTTP round-trip fails, or the response can't be parsed.Refresh-token grant (RFC 6749 §6) flow helper.Builder.Immutable record returned by every OAuth 2.0 flow helper on a successful token acquisition.