-
-
Notifications
You must be signed in to change notification settings - Fork 548
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: add new backend BitbucketDataCenterOAuth2
and BaseOAuth2PKCE
#856
feat: add new backend BitbucketDataCenterOAuth2
and BaseOAuth2PKCE
#856
Conversation
BitbucketDataCenterOAuth2
Abstracting that sounds like a good idea. Please also add tests and documentation. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #856 +/- ##
==========================================
+ Coverage 77.34% 77.58% +0.24%
==========================================
Files 341 343 +2
Lines 10413 10525 +112
Branches 699 700 +1
==========================================
+ Hits 8054 8166 +112
Misses 2201 2201
Partials 158 158
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…ps://github.com/eshaan7/social-core into feature/new-backend/bitbucket-datacenter-oauth2
for more information, see https://pre-commit.ci
This add a generic backend based in ConfigurableOpenIdConnectAuth but with PKCE. This backend is inspired in the social-core way to implement PKCE. There is a current PR in working, but for the moment, that class is not merged and accesible. So after that is finished this has it code for `code_challenge` and `code_challenge_method`implementation. PR: python-social-auth/social-core#856
This add a generic backend based in ConfigurableOpenIdConnectAuth but with PKCE. This backend is inspired in the social-core way to implement PKCE. There is a current PR in working, but for the moment, that class is not merged and accesible. So after that is finished this has it code for `code_challenge` and `code_challenge_method`implementation. PR: python-social-auth/social-core#856
This add a generic backend based in ConfigurableOpenIdConnectAuth but with PKCE. This backend is inspired in the social-core way to implement PKCE. There is a current PR in working, but for the moment, that class is not merged and accesible. So after that is finished this has it code for `code_challenge` and `code_challenge_method`implementation. PR: python-social-auth/social-core#856
for more information, see https://pre-commit.ci
…ps://github.com/eshaan7/social-core into feature/new-backend/bitbucket-datacenter-oauth2
Can I get a review on this now? I have added complete tests along with refactoring the existing PKCE ones. Just docs pending, will do it later. |
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.
Thanks, looks good now. I think we can merge this once the docs is ready as well.
@nijel; pushed some smaller changes addressing the review and made Also, docs PR is up at: python-social-auth/social-docs#190 |
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.
Add some style suggestions
* feat: add pkce-openid-backend This adds a generic backend based on ConfigurableOpenIdConnectAuth but with PKCE. This backend is inspired in the social-core way to implement PKCE. There is a current PR in work, but for the moment, that class is not merged and accessible. So after that is finished this has it code for `code_challenge` and `code_challenge_method`implementation. PR: python-social-auth/social-core#856 * refactor: avoid repeated pkce conf definition * feat: update with small changes social_core * refactor: suggestions from code review Co-authored-by: Omar Al-Ithawi @ NELC <134635705+omar-nelc@users.noreply.github.com> Co-authored-by: Andrey Cañon <andrey.canon@edunext.co>
Co-authored-by: Johan Castiblanco <51926076+johanv26@users.noreply.github.com>
@nijel; Let's merge this :D |
Merged, thanks for your contribution! |
BitbucketDataCenterOAuth2
BitbucketDataCenterOAuth2
and BaseOAuth2PKCE
* feat: add pkce-openid-backend This adds a generic backend based on ConfigurableOpenIdConnectAuth but with PKCE. This backend is inspired in the social-core way to implement PKCE. There is a current PR in work, but for the moment, that class is not merged and accessible. So after that is finished this has it code for `code_challenge` and `code_challenge_method`implementation. PR: python-social-auth/social-core#856 * refactor: avoid repeated pkce conf definition * feat: update with small changes social_core * refactor: suggestions from code review Co-authored-by: Omar Al-Ithawi @ NELC <134635705+omar-nelc@users.noreply.github.com> Co-authored-by: Andrey Cañon <andrey.canon@edunext.co>
This adds a generic backend based on ConfigurableOpenIdConnectAuth but with PKCE. This backend is inspired in the social-core way to implement PKCE. There is a current PR in work, but for the moment, that class is not merged and accessible. So after that is finished this has it code for `code_challenge` and `code_challenge_method`implementation. PR: python-social-auth/social-core#856 Co-authored-by: Omar Al-Ithawi @ NELC <134635705+omar-nelc@users.noreply.github.com> Co-authored-by: Andrey Cañon <andrey.canon@edunext.co>
This adds a generic backend based on ConfigurableOpenIdConnectAuth but with PKCE. This backend is inspired in the social-core way to implement PKCE. There is a current PR in work, but for the moment, that class is not merged and accessible. So after that is finished this has it code for `code_challenge` and `code_challenge_method`implementation. PR: python-social-auth/social-core#856 Co-authored-by: Omar Al-Ithawi @ NELC <134635705+omar-nelc@users.noreply.github.com> Co-authored-by: Andrey Cañon <andrey.canon@edunext.co>
This adds a generic backend based on ConfigurableOpenIdConnectAuth but with PKCE. This backend is inspired in the social-core way to implement PKCE. There is a current PR in work, but for the moment, that class is not merged and accessible. So after that is finished this has it code for `code_challenge` and `code_challenge_method`implementation. PR: python-social-auth/social-core#856 Co-authored-by: Omar Al-Ithawi @ NELC <134635705+omar-nelc@users.noreply.github.com> Co-authored-by: Andrey Cañon <andrey.canon@edunext.co>
Proposed changes
Resolves #855.
Related social-docs PR: python-social-auth/social-docs#190
BitbucketDataCenterOAuth2
.BaseOAuth2PKCE
and re-used in bothTwitterOAuth2
andBitbucketDataCenterOAuth2
.OAuth2PkcePlainTest
andOAuth2PkceS256Test
and re-used in bothtest_twitter_oauth2.py
andtest_bitbucket_datacenter.py
Types of changes
Please check the type of change your PR introduces:
Checklist
Put an
x
in the boxes that apply. You can also fill these out after creatingthe PR. If you're unsure about any of them, don't hesitate to ask. We're here to
help! This is simply a reminder of what we are going to look for before merging
your code.
Other information
Any other information that is important to this PR such as screenshots of how
the component looks before and after the change.