-
Notifications
You must be signed in to change notification settings - Fork 38
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
core: improve anon/auth token logic #148
Merged
Merged
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
fc44c01
core: TokenAuth request_token fix missing auth
tarilabs 3d434a0
core: use token in auth in subsequent requests
tarilabs f8409f9
core: if 401 on 2nd attempt, avoid anon tokens
tarilabs 425d035
linting
tarilabs 708027f
guard as headers is Optional
tarilabs bd07f6c
implement review request
tarilabs 5df68eb
Revert "implement review request"
tarilabs 27ee4c4
Revert "linting"
tarilabs 06f885b
Revert "core: if 401 on 2nd attempt, avoid anon tokens"
tarilabs 05b1e57
Revert "core: TokenAuth request_token fix missing auth" b/c #153
tarilabs bb4c2ec
implement review comment about anon/req token
tarilabs 9c3f003
linting
tarilabs 7d891e9
review feedback: logging
tarilabs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back 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.
Just a sanity check - could this have any parameters we wouldn't want to be printed? I would probably leave this line out entirely.
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.
only
service
andscope
:oras-py/oras/auth/token.py
Lines 147 to 151 in 625c6ff
which to my understanding are not sensitive info and done analogously for the auth token.
Just to be clear, I've just changed the hardcoded text to make it significant it's about an anon token when observing the logs, and the
params
was there before :)I thought aligning log statements in:
to your comment of:
(source)
but let me know if you prefer me to change those log debug statement to something else!
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.
I just wanted to double check this - I think this should be ok to print.