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] Ruby - Support refreshing access tokens #14068

Open
lisamburns opened this issue Nov 19, 2022 · 1 comment
Open

[REQ] Ruby - Support refreshing access tokens #14068

lisamburns opened this issue Nov 19, 2022 · 1 comment

Comments

@lisamburns
Copy link
Contributor

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

The autogenerated ruby 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

The ruby client would have a configuration for a proc to get the access token.
The proc could be configured to retrieve a new access token.

Describe alternatives you've considered

I could override the Configuration class to add this property, but that makes it hard to upgrade versions.

Additional context

@wing328
Copy link
Member

wing328 commented Nov 20, 2022

@lisamburns your suggestion sounds good. can you please file a PR with the suggested enhancement when you've time? Thanks.

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

No branches or pull requests

2 participants