-
Notifications
You must be signed in to change notification settings - Fork 2k
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
@uppy/companion: fix authProvider
property inconsistency
#4672
Merged
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
df98cca
remove useless line
mifi 9ccf2ae
fix broken cookie removal logic
mifi 04128f9
fix mime type of thumbnails
mifi 9ceac7c
simplify/speedup token generation
mifi 600b2d0
use instanceof instead of prop check
mifi da67ac9
Implement alternative provider auth
mifi 7d59489
refactor
mifi ab06da6
use respondWithError
mifi 16d4e3f
fix prepareStream
mifi 2092387
don't throw when missing i18n key
mifi f575dbc
fix bugged try/catch
mifi 754e2e0
allow aborting login too
mifi 6441123
add json http error support
mifi f503d1f
don't tightly couple auth form with html form
mifi 272e3d1
fix i18n
mifi f2e5aa4
make contentType parameterized
mifi 8016a5d
merge main
mifi 9f160f4
Merge branch 'main' into provider-user-sessions
mifi a28fcec
allow sending certain errors to the user
mifi e040c7b
make `authProvider` consistent
mifi 408ac3d
fix bug
mifi e98af01
fix test also
mifi 3166db9
don't have default content-type
mifi 5c20186
make a loginSimpleAuth api too
mifi b33f5b1
Merge branch 'main' into provider-user-sessions
mifi 7549da4
make removeAuthToken protected
mifi 8794f63
Merge branch 'main' into provider-user-sessions
mifi 42f74b2
fix lint
mifi 7a84c8d
run yarn format
mifi 38eee72
Apply suggestions from code review
mifi 70a7a48
fix broken merge conflict
mifi 0d81a9b
improve inheritance
mifi 96eb565
fix bug
mifi 67d8595
fix bug with dynamic grant config
mifi 5025a73
use duck typing for error checks
mifi 761dcdc
Apply suggestions from code review
mifi 95c8e38
Merge branch 'main' into provider-user-sessions
mifi 64ce471
fix broken lint fix script
mifi 654da1a
fix broken merge code
mifi a69a1fe
try to fix flakey tets
mifi 5c508d3
Merge branch 'provider-user-sessions' into fix-authprovider-inconsist…
mifi 6d766cb
fix lint
mifi 7a920f9
fix merge issue
mifi 117644f
Merge branch 'provider-user-sessions' into fix-authprovider-inconsist…
mifi 2af7b24
Merge branch 'main' into provider-user-sessions
mifi 854093e
Merge branch 'provider-user-sessions' into fix-authprovider-inconsist…
mifi 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
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
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
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
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
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
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
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.
This indicates that we could move it out of the class (i.e. as a standalone function). Can we do that in this PR?
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.
Right, but this has to be done in all providers so I didn't feel it was worth the effort (and breakage of git blame/history). maybe a todo will do?
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 tried to refactor one of the provider classes by moving it out of the class, but then we have to add 6 new
// eslint-disable-next-line class-methods-use-this
because each instance method gets the same error (due to no longer usingthis.#withErrorHandling
). so i'm guessing this is why i didn't do it in the first place 😅