-
Notifications
You must be signed in to change notification settings - Fork 517
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
chore: add support for oauth in public apis #1049
Conversation
import ApiTokenManager from "../http/bearer_token/ApiTokenManager"; | ||
import TokenAuthStrategy from "../auth_strategy/TokenAuthStrategy"; | ||
|
||
class ClientCredentialProvider extends CredentialProvider { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need another Credential provider for Orgs API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added Orgs credential provider here
Quality Gate failedFailed conditions |
To be completed by #1050 |
Feature
This PR adds support for accessing Twilio APIs using OAuth2 as well. It adds the following classes:
Token Managers to fetch access token
AuthStrategy to use tokens and create authString
Credential Providers to choose different auth strategy, be it - Basic Auth, OAuth or NoAuth (Limited use)
Modifications to Client to accomodate new changes without breaking previous flow
Checklist
If you have questions, please file a support ticket, or create a GitHub Issue in this repository.