feat(client): replace basic auth with OAuth ROPC flow by nejch · Pull Request #2422 · python-gitlab/python-gitlab
Repository navigation
feat(client): replace basic auth with OAuth ROPC flow - #2422
Draft
nejch wants to merge 1 commit into main from feat/oauth2-resource-password-flow
Draft
feat(client): replace basic auth with OAuth ROPC flow #2422 nejch wants to merge 1 commit into main from feat/oauth2-resource-password-flow
Conversation
nejch commented Dec 11, 2022
Copy link Copy Markdown
Member
Small step towards #1195 , and also to get rid of the old username/password auth.
Also gets rid of the requests-specific HTTPBasicAuth.
codecov-commenter
commented
Dec 11, 2022
·
edited by codecov
Bot
Loading
Copy link Copy Markdown
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files @@ Coverage Diff @@ ## main #2422 +/- ## ========================================== + Coverage 92.16% 96.17% +4.00% ========================================== Files 88 88 Lines 5708 5692 -16 ========================================== + Hits 5261 5474 +213 + Misses 447 218 -229
Flags with carried forward coverage won't be shown. Click here to find out more.
|
7b1a20d to
90be806
Compare
December 19, 2022 15:02 nejch commented Dec 19, 2022
View reviewed changes
Comment thread gitlab/client.py
| ) | ||
| self.http_backend = http_backend(**kwargs) | ||
|
|
||
| self._set_auth_info() |
nejch commented Dec 19, 2022
Copy link Copy Markdown
Member
Author
|
@lmilbaum this should also help get rid of |
View reviewed changes
Comment thread gitlab/client.py
| user_agent: str = gitlab.const.USER_AGENT, | ||
| retry_transient_errors: bool = False, | ||
| keep_base_url: bool = False, | ||
| *, |
| self.http_username, self.http_password | ||
| ) | ||
|
|
||
| if self.oauth_credentials: |
| ) | ||
| self.http_backend = http_backend(**kwargs) | ||
|
|
||
| self._set_auth_info() |
View reviewed changes
nejch left a comment
Copy link Copy Markdown
Member
Author
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more .
@lmilbaum I just realized I left my responses as Pending for weeks :( just clicking submit now :)
Comment thread gitlab/client.py| user_agent: str = gitlab.const.USER_AGENT, | ||
| retry_transient_errors: bool = False, | ||
| keep_base_url: bool = False, | ||
| *, |
| ) | ||
| self.http_backend = http_backend(**kwargs) | ||
|
|
||
| self._set_auth_info() |
| self.http_username, self.http_password | ||
| ) | ||
|
|
||
| if self.oauth_credentials: |
90be806 to
be7745d
Compare
February 16, 2023 19:22 nejch force-pushed the feat/oauth2-resource-password-flow branch from
be7745d to
7e65adc
Compare
October 12, 2023 11:16
feat(client): replace basic auth with OAuth ROPC flow
3733872
nejch
marked this pull request as draft
October 12, 2023 12:03
nejch
force-pushed
the
feat/oauth2-resource-password-flow
branch
from
7e65adc to
3733872
Compare
June 8, 2024 19:29
lmilbaum commented Sep 12, 2026
Copy link Copy Markdown
|
@nejch Can you please close this PR? |
This branch has not been deployed
No deployments
Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment