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

Add Bearer token authorization expiration strategies #91

Open
gregglind opened this issue Jul 31, 2024 · 0 comments
Open

Add Bearer token authorization expiration strategies #91

gregglind opened this issue Jul 31, 2024 · 0 comments

Comments

@gregglind
Copy link

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

api-client HeaderAuthentication assumes that all Bearer tokens are valid.

When these token expire or are invalidated at the server,

Describe the solution you'd like

  1. Add authenticate or bearer_authenticate method that defines how to get a valid Bearer token. Bonus: This method should implement backoff and error-handling.

Describe alternatives you've considered

  1. Define and a BaseAuthentication class to contain the methods for getting an authorization.

Additional context
This is a hard request, and I am very interested in hearing what designs sound good to others.

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

No branches or pull requests

1 participant