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: oauth sdk implementation #799

Merged
merged 15 commits into from
Jul 23, 2024
Merged

feat: oauth sdk implementation #799

merged 15 commits into from
Jul 23, 2024

Conversation

manisha1997
Copy link
Contributor

@manisha1997 manisha1997 commented Jun 21, 2024

Feature

Create HTTP client for BearerTokenAuthentication in Threadsafe manner

Checklist

  • I acknowledge that all my contributions will be made under the project's license
  • I have made a material change to the repo (functionality, testing, spelling, grammar)
  • I have read the Contribution Guidelines and my PR follows them
  • I have titled the PR appropriately
  • I have updated my branch with the main branch
  • I have added tests that prove my fix is effective or that my feature works
  • I have added the necessary documentation about the functionality in the appropriate .md file
  • I have added inline documentation to the code I modified

If you have questions, please file a support ticket, or create a GitHub Issue in this repository.

@manisha1997 manisha1997 marked this pull request as draft June 21, 2024 13:20
@manisha1997 manisha1997 marked this pull request as ready for review June 24, 2024 16:30
twilio/http/bearer_token_http_client.py Dismissed Show dismissed Hide dismissed
@manisha1997 manisha1997 changed the title chore: oauth sdk implementation feat: oauth sdk implementation Jun 25, 2024
return headers

def is_token_expired(self, token):
decoded_jwt = jwt.decode(token, options={"verify_signature": False})

Check failure

Code scanning / SonarCloud

JWT should be signed and verified

<!--SONAR_ISSUE_KEY:AZBLGS_s_XlZlWu4vuTh-->Don't use a JWT token without verifying its signature. <p>See more on <a href="https://sonarcloud.io/project/issues?id=twilio_twilio-python&issues=AZBLGS_s_XlZlWu4vuTh&open=AZBLGS_s_XlZlWu4vuTh&branch=oauth-sdk">SonarCloud</a></p>
Copy link

sonarcloud bot commented Jul 9, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@manisha1997 manisha1997 changed the base branch from main to 10.0.0-rc July 10, 2024 06:52
twilio/http/orgs_token_manager.py Outdated Show resolved Hide resolved
twilio/rest/preview_iam/organizations_openapi/token.py Outdated Show resolved Hide resolved
twilio/http/token_manager.py Outdated Show resolved Hide resolved
twilio/twilio_bearer_token_auth.py Show resolved Hide resolved
twilio/twilio_no_auth.py Outdated Show resolved Hide resolved
twilio/http/orgs_token_manager.py Show resolved Hide resolved
Copy link
Contributor

@AsabuHere AsabuHere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@manisha1997 manisha1997 merged commit b4c5734 into 10.0.0-rc Jul 23, 2024
9 of 10 checks passed
@manisha1997 manisha1997 deleted the oauth-sdk branch July 23, 2024 10:12
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.

2 participants