You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently the only way to provide authentication tokens are by providing it directly with an option.
This is not super friendly as it forces us to deal with the token management specifically outside the client, and recreate a new configuration every time a token get renewed.
Of course, it is not the responsibility of the generated client to deal with this, but we can offer a better integration between the two, so that developers does not necessarily need to DIY it.
Describe the solution you'd like
To improve the integration with token source providers in rust:
add a new option to activate this mode (as a replacement of the current token attributes in the configuration)
use that when setting the authorization header in requests
Important: A token source MUST be async, which restrict this mode to async clients. For sync client, the current configuration way will be kept.
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Currently the only way to provide authentication tokens are by providing it directly with an option.
This is not super friendly as it forces us to deal with the token management specifically outside the client, and recreate a new configuration every time a token get renewed.
Of course, it is not the responsibility of the generated client to deal with this, but we can offer a better integration between the two, so that developers does not necessarily need to DIY it.
Describe the solution you'd like
To improve the integration with token source providers in rust:
Important: A token source MUST be
async
, which restrict this mode toasync
clients. Forsync
client, the current configuration way will be kept.Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: