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 Salesforce Authentication Module with OAuth and Password Support #62

Open
srijan-chaudhuri opened this issue Sep 19, 2024 · 0 comments

Comments

@srijan-chaudhuri
Copy link

srijan-chaudhuri commented Sep 19, 2024

Description:

We need to implement a Salesforce authentication module that supports both OAuth2 and password-based login mechanisms. The module should handle token refreshes for OAuth2, support retry logic for retriable errors, and provide a way to select the correct authentication method based on the provided configuration.

Acceptance Criteria:

  • Implement a base authentication class SalesforceAuth that handles:
    • Access tokens
    • Instance URL
    • Headers for REST and bulk API calls

QA and Testing:

  • Test OAuth2 login using valid credentials.
  • Test password-based login using valid credentials.
  • Test automatic token refresh functionality for OAuth2.
  • Test retry logic for expired tokens or other retriable errors.
  • Test error handling and logging for invalid credentials.

Related PR:

  • Link to the corresponding PR once created.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant