-
Notifications
You must be signed in to change notification settings - Fork 0
feat(llc)!: let a TokenManager switch users #159
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
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
03309bd
feat(llc)!: let a TokenManager switch users
xsahil03x f39237c
docs(llc): drop the AuthInterceptor user_id entry from the changelog
xsahil03x 4802c50
test(llc): cover the deliberate user_id/token divergence in AuthInter…
xsahil03x 5f56044
fix(llc): discard a token load invalidated while it was in flight
xsahil03x 42c2215
refactor(llc): make token provider mismatches assertable without thei…
xsahil03x b0fede1
refactor(llc): drop the redundant prefix from token mismatch messages
xsahil03x 761741e
test(llc): share one JWT builder across the token tests
xsahil03x bd1bdcd
refactor(llc)!: remove AuthInterceptor.withProvider
xsahil03x a52b63b
style(llc): align with STYLE_GUIDE and TESTING conventions
xsahil03x 79c4df9
test(llc): keep the JWT builder local to each test file
xsahil03x 6785fe7
test(llc): share one JWT builder, and document the pattern
xsahil03x 93c9679
docs(repo): drop the incident detail from the test-fixture rule
xsahil03x c4bfea2
refactor(llc): restore the original token mismatch messages
xsahil03x b6f8441
refactor(llc): drop the ArgumentError name argument
xsahil03x a636589
docs(llc): drop an inaccurate comment on the token type check
xsahil03x f395b96
test(llc): reach the type check now that the user id is validated first
xsahil03x 1fb2c5a
feat(llc): let a TokenManager exist before its user does
xsahil03x d852fad
fix(llc): report a wrong-type token as such, not as a wrong user
xsahil03x f451bc4
fix(llc): stop serving a token for a user the manager has dropped
xsahil03x 644eb3c
fix(llc): keep the token-expired error when there is no user to refre…
xsahil03x 2b1e547
docs(llc): record the behaviour changes raised in review
xsahil03x d0e083a
fix(llc): compare a replacement provider by instance, not by equality
xsahil03x 1fc8c6f
feat(llc): bound a token load so one provider cannot block the rest
xsahil03x d435cfb
Revert "feat(llc): bound a token load so one provider cannot block th…
xsahil03x 067586c
docs(llc): say that a provider's equality is never consulted
xsahil03x b7d6e36
Revert "fix(llc): compare a replacement provider by instance, not by …
xsahil03x 4f12972
refactor(llc): name the anonymous token's claim as the user id it is
xsahil03x ea9fd19
feat(llc): give a token an expiry it can be asked about
xsahil03x 3d3a927
refactor(llc): read the token's expiry claim directly
xsahil03x ad275a1
fix(llc): replace a cached token the server would refuse for having e…
xsahil03x e5b273c
fix(llc): include a token's expiry in its equality
xsahil03x 7fcf6a4
docs(llc): correct the token docs that name what is not there
xsahil03x f46598b
docs(llc): trim the changelog to what a consumer needs
xsahil03x 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Wire-visible change that isn't in the changelog: with
UserToken.anonymouspinned to!anon, anonymous requests now always senduser_id=!anon. Before this PR the value came from the manager, so it was whatever the caller constructed it with — which for video's guest bootstrap was a real id.The test
sends an anonymous token as an empty Authorization header…pins the new value, so it's clearly intended. Two asks: a changelog line for it, and confirmation thatuser_id=!anonis actually what the backend wants on an anonymous request, since a test can only tell us we send it consistently, not that it's correct.