Skip to content

Add support for OAuth Authentication with automatic token refresh #115

@b1zzu

Description

@b1zzu

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:

jersey2 should 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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions