Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQ] Support for a oauth access token supplier for Java RestClient clients #19943

Closed
twonky4 opened this issue Oct 22, 2024 · 1 comment · Fixed by #19944
Closed

[REQ] Support for a oauth access token supplier for Java RestClient clients #19943

twonky4 opened this issue Oct 22, 2024 · 1 comment · Fixed by #19944

Comments

@twonky4
Copy link
Contributor

twonky4 commented Oct 22, 2024

Is your feature request related to a problem? Please describe.

Under certain circumstances it is useful to be able to provide a supplier for oauth access tokens with using a RestClient based Java client.

Describe the solution you'd like

The ApiClient currently supports setAccessToken(String) method - this is extended so that a setAccessToken(Supplier<String>) can be invoked.

Additional context

This was already implemented for RestTemplate OAuth or RestClient HttpBearerAuth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant