-
Notifications
You must be signed in to change notification settings - Fork 0
Set username based on token #348
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
Conversation
Set username based on token
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #348 +/- ##
==========================================
- Coverage 92.87% 92.82% -0.06%
==========================================
Files 61 61
Lines 2247 2258 +11
==========================================
+ Hits 2087 2096 +9
- Misses 160 162 +2 ☔ View full report in Codecov by Sentry. |
Raise exception when username passed does not match preferred_username
PipKat
left a comment
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 but I can only reviewing docstring content. I can't judge if the code is acceptable.
FedericoNegri
left a comment
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.
Please also add a test in test_client.py.
Move scope of username logic
FedericoNegri
left a comment
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.
Looks good, thanks
Set username based on token
Description
The username field is currently set when a client is instantiated. Due to different auth workflows, the username may not match the preferred username defined in the auth token. This PR attempts to adjust the username based on the auth token.
Checklist
Please complete the following checklist before submitting your pull request: