Skip to content

Add token acquisition helpers#292

Merged
dasniko merged 2 commits into
mainfrom
feature/286_token_helpers
Jun 9, 2026
Merged

Add token acquisition helpers#292
dasniko merged 2 commits into
mainfrom
feature/286_token_helpers

Conversation

@dasniko

@dasniko dasniko commented Apr 10, 2026

Copy link
Copy Markdown
Owner

Description

Add getAccessToken(), getClientCredentialsToken(), getTokenResponse() and getClientCredentialsTokenResponse() to eliminate the most common token-acquisition boilerplate. Uses SimpleHttp (extended with POST / form-param support) and no new dependencies. TokenResponse is an immutable Lombok @value holding access token, id token, refresh token, expiry, and token type.

Related issue

Closes #286

Checklist

  • ./mvnw clean verify passes locally
  • Tests cover the changed behaviour
  • README updated (if user-facing change)

dasniko and others added 2 commits June 9, 2026 22:30
Add getAccessToken(), getClientCredentialsToken(), getTokenResponse()
and getClientCredentialsTokenResponse() to eliminate the most common
token-acquisition boilerplate. Uses SimpleHttp (extended with POST /
form-param support) and no new dependencies. TokenResponse is an
immutable Lombok @value holding access token, id token, refresh token,
expiry, and token type.

Closes #286

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Niko Köbler <niko@n-k.de>
Document getAccessToken, getClientCredentialsToken, getTokenResponse,
and getClientCredentialsTokenResponse in README and framework guides.
Update spring-boot.md and quarkus.md to use built-in helpers as the
primary approach for obtaining tokens in tests.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Niko Köbler <niko@n-k.de>
@dasniko dasniko force-pushed the feature/286_token_helpers branch from a385086 to f5fa084 Compare June 9, 2026 20:31
@dasniko dasniko marked this pull request as ready for review June 9, 2026 20:31
@dasniko dasniko merged commit 7ff9209 into main Jun 9, 2026
11 checks passed
@dasniko dasniko deleted the feature/286_token_helpers branch June 9, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Token acquisition helpers

1 participant