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

feat: authentication module that supports both OAuth2 #61

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

srijan-chaudhuri
Copy link

@srijan-chaudhuri srijan-chaudhuri commented Sep 16, 2024

Description of Change:

This PR introduces a cleaner way of handling errors so users can get more information about the point of failure.

Key changes:

OAuth2 authentication using client_id, client_secret, and refresh_token.
Password-based authentication using username, password, and security_token.
Retry logic for OAuth2 failures via the backoff library, ensuring retriable errors like expired tokens are automatically handled.
Automatic token refresh every 15 minutes using a background thread for OAuth2.
Config parsing to select and use the correct credential type (OAuth or password).

Closes issue:

#62

@srijan-chaudhuri srijan-chaudhuri changed the title init commit Feat: authentication module that supports both OAuth2 Sep 19, 2024
@srijan-chaudhuri srijan-chaudhuri changed the title Feat: authentication module that supports both OAuth2 feat: authentication module that supports both OAuth2 Sep 19, 2024
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

Successfully merging this pull request may close these issues.

1 participant