-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Currently, the SDK supports only the access token which will expire within 15 minutes.
Current behavior:
The ApiClient is generated by default with the HttpBearerAuth authentication class and it can not substitute or overwrite therefore the only way to add a refresh token logic is to wrap the whole API and check if the token is expired before calling the API.
Expected behavior:
The ApiClient should support the OAuth token refresh logic or it should allow the user to pass/set/overwrite the authentication with a custom one.
From some of the existing issues on the openapi-generator project:
jersey2should have pretty good Oauth support (e.g. automatic token refresh, etc) OpenAPITools/openapi-generator#8702 (comment)
which make me things that we only need to propose an improve to the openapi-generator project