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][Java] Support refreshing access tokens #16059

Closed
kota65535 opened this issue Jul 11, 2023 · 1 comment · Fixed by #16485, #17081 or #17086
Closed

[REQ][Java] Support refreshing access tokens #16059

kota65535 opened this issue Jul 11, 2023 · 1 comment · Fixed by #16485, #17081 or #17086

Comments

@kota65535
Copy link
Contributor

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

Current generated Java clients only can be configured with a static access token. This does not work well for integrations where tokens are short-lived and need to be refreshed.

Describe the solution you'd like

Java clients can have a configuration for a supplier function to get an access token. In this function, we can implement a mechanism to refresh the access token.

Describe alternatives you've considered

I'm using custom templates and so far it is working well, but it makes diffucult to upgrade the openapi-generator version.

Additional context

Similar to #14068

@kota65535
Copy link
Contributor Author

Fixed partially with RestTemplate library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment