Repository navigation
🔑 feat: Let Users Connect Their Own Account for Pull Request Lookups #16989
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
37 commits
Select commit
Hold shift + click to select a range
8e3c81b
feat: Let Users Connect Their Own Account for Pull Request Lookups
berry-13 0bd4b1e
fix: Refuse Cross-Tenant Pull Request Callbacks and Surface Key Failures
berry-13 5448b3a
fix: Keep Pull Request Grants Through Outages and Remove Them on Disc…
berry-13 cedace6
fix: Keep the Pull Request OAuth App Out of Overrides
berry-13 9824568
fix: Read a User's Pull Request Token Only With the Feature On
berry-13 57fedc6
fix: Report a Malformed Stored Pull Request Grant as a Failure
berry-13 d65a790
fix: Remove a User's Stored Tokens When an Administrator Deletes the …
berry-13 c8434bb
fix: Answer No Pull Request for a Conversation Without a Lane When th…
berry-13 30b076d
fix: Share One Grant Read Between Concurrent Callers and Report an Ex…
berry-13 aa72c17
fix: Remove a Pull Request Grant Only on a Definite Refusal and Past …
berry-13 979eaa9
fix: Version Pull Request Grants and Coordinate Refresh, Refusal and …
berry-13 9bde387
fix: Invalidate a Refused User Token and Read It Only for a Lane That…
berry-13 b7bc5f5
fix: Finish a Pull Request Connection Under the User's Effective Conf…
berry-13 6c666e2
fix: Type the Pull Request User Token for Isolated Declarations and S…
berry-13 d4892f7
fix: Bind a Pull Request Connection Flow to the Generation a Disconne…
berry-13 7bea76c
fix: Start a Batch's User Token Read Only Within Its Deadline
berry-13 d1cf97e
fix: Fence Pull Request Token Reads Against a Disconnect and Report a…
berry-13 84fc44e
fix: Fence Connection Status Like Token Reads and Keep a Newer Read J…
berry-13 ce170b6
fix: Report a Pull Request Grant Without Its App and Name the Sign-In…
berry-13 33d7560
fix: Read a User's Unexpired Pull Request Grants Newest First
berry-13 960b34b
fix: Mark the Connection Callback as an OAuth Navigation and Report a…
berry-13 7008510
fix: Name the Pull Request Sign-In Flow on Its Landing Page
berry-13 ea402c6
fix: Remove a Pull Request Grant of a Replaced App When It Is Read
berry-13 6b6dd7f
fix: Keep a Replaced App's Grant Untouched and Extend Retention From …
berry-13 0d09dba
fix: Accept a Pull Request Grant Only Under the User's Current Connec…
berry-13 4cc1643
fix: Renew the Connection Generation With a Grant Still in Use
berry-13 d62defd
fix: Restore the Previous Connection When a Sign-In Cannot Store Its …
berry-13 38cac85
fix: Decide a Sign-In by What Was Stored When a Write Does Not Answer
berry-13 ecfbf66
fix: Roll Back a Sign-In's Generation Along With a Grant It Must Remove
berry-13 247b8d4
fix: Refresh an Access Token a Lookup Was Refused With Before Ending …
berry-13 d289d8d
fix: Undo a Sign-In Only for a Confirmed Fence, Not a Failed Check
berry-13 09a85c3
fix: Read a User Token Again When the Connection Changes Under the Read
berry-13 230eaf1
fix: Apply the Current Retention Again When Another Replica Changed t…
berry-13 1ed8ace
test: Answer Each Concurrent Sign-In by Its Own Code
berry-13 bdebfd5
fix: Skip Retention Rewrites for Grants That Expire Without a Refresh…
berry-13 ce13b85
fix: Retry a Token Rejection That Loses to a Concurrent Grant Write
berry-13 b270a66
fix: Skip User Token Reads for Lanes Without a Commit and Reread Stat…
berry-13 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| const { createProxyAwareFetch, createPullRequestConnectionRouter } = require('@librechat/api'); | ||
| const requireJwtAuth = require('~/server/middleware/requireJwtAuth'); | ||
| const { markOAuthNavigation } = require('~/server/middleware/oauthNavigation'); | ||
| const { loginLimiter } = require('~/server/middleware/limiters'); | ||
| const { getAppConfig } = require('~/server/services/Config'); | ||
| const db = require('~/models'); | ||
|
|
||
| module.exports = createPullRequestConnectionRouter({ | ||
| store: db, | ||
| fetchFn: createProxyAwareFetch(), | ||
| env: process.env, | ||
| getAppConfig, | ||
| getUserById: db.getUserById, | ||
| requireJwtAuth, | ||
| markNavigation: markOAuthNavigation, | ||
| callbackLimiter: loginLimiter, | ||
| }); |
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
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.
Uh oh!
There was an error while loading. Please reload this page.