-
Notifications
You must be signed in to change notification settings - Fork 711
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: Organizations Api uptake for twilio-python #815
base: main
Are you sure you want to change the base?
Conversation
* chore: oauth sdk implementation
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.
LGTM
|
||
if not self.username or not self.password: | ||
raise TwilioException("Credentials are required to create a TwilioClient") | ||
self.credential_provider = credential_provider or None |
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.
Check this with Kridai, if existing customers use TwilioException - this is a breaking change
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.
Check if the exception being thrown as 401 is getting wrapped in TwilioException and being sent to customer
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.
For the below cases
- No username password provided
- Wrong username password provided
TwilioRestException is thrown now
Is this a breaking change?
from twilio.base.domain import Domain | ||
from typing import Optional | ||
from twilio.rest import Client | ||
|
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.
generate from librarian and add it and commit it
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.
librarian generation has issues currently. This needs to be fixed before generating and adding these files
exp = decoded.get('exp') | ||
|
||
if exp is None: | ||
return True # No expiration time present, consider it expired |
Check failure
Code scanning / SonarCloud
JWT should be signed and verified High
exp = decoded.get('exp') | ||
|
||
if exp is None: | ||
return True # No expiration time present, consider it expired |
Check failure
Code scanning / SonarCloud
JWT should be signed and verified
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
Fixes
A short description of what this PR does.
Checklist
If you have questions, please file a support ticket, or create a GitHub Issue in this repository.