Skip to content

docs(oauth): refresh token API docs, Slate, and client-auth notes#3842

Open
fhanik wants to merge 1 commit intocloudfoundry:developfrom
fhanik:pr/doc-improvements
Open

docs(oauth): refresh token API docs, Slate, and client-auth notes#3842
fhanik wants to merge 1 commit intocloudfoundry:developfrom
fhanik:pr/doc-improvements

Conversation

@fhanik
Copy link
Copy Markdown
Contributor

@fhanik fhanik commented Apr 15, 2026

Summary

This PR updates the OAuth token and JWT bearer grant REST documentation (Spring REST Docs) and the Slate HTML sources so published API docs match current behavior. It also adds JavaDoc on ClientDetailsAuthenticationProvider explaining how the request path (/oauth/token vs /oauth/token/alias/...) affects client authentication, with a unit test guarding private_key_jwt on the alias path.

Changes

TokenEndpointDocs: Rework documented requests/snippets for token grants (zone resolution, SAML issuer, client authentication styles, clearer separation of examples).
JwtBearerGrantEndpointDocs / related mock tests: Align JWT bearer documentation and tests with distinct client authentication examples where appropriate.
AbstractTokenMockMvcTests: Shared adjustments to support the updated doc tests.
index.html.md.erb: Slate token section structure, snippet references, and copy aligned with the REST doc output.
ClientDetailsAuthenticationProvider: Document alias token path behavior for operators and maintainers.
README.md / uaa/slate/Gemfile.lock: Tested with Ruby 3.3.5 and 3.3.8 (consistent with uaa/slate/.ruby-version) for generateDocs.

- Align REST doc tests with Host-based zone resolution and dynamic SAML issuer
- Restore and clarify client basic auth usage in documented requests where applicable
- Split and expand JWT bearer grant REST docs (secret vs private_key_jwt patterns)
- Restructure Slate token section (headings, snippets, user token grant wording)
- Document ClientDetailsAuthenticationProvider behavior for /oauth/token vs /oauth/token/alias/...
- Add unit coverage for private_key_jwt on the OAuth token alias path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant