-
Notifications
You must be signed in to change notification settings - Fork 399
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
Fix #1335 Proper use of state parameter for the OAuth CSRF protection #1391
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1391 +/- ##
==========================================
- Coverage 77.13% 76.97% -0.17%
==========================================
Files 18 17 -1
Lines 1478 1446 -32
Branches 434 426 -8
==========================================
- Hits 1140 1113 -27
+ Misses 239 232 -7
- Partials 99 101 +2
Continue to review full report at Codecov.
|
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, left a couple of comments/questions.
defaultRenderHtmlForInstallPath; | ||
res.send(renderHtml(url)); | ||
} | ||
await installer.handleInstallPath(req, res, installPathOptions, installUrlOptions); |
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.
👨🍳 💋
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.
Always love seeing PRs with more code removal than additions! I think this refactor also makes Bolt's source easier to read.
@@ -60,6 +35,6 @@ receiver.router.get('/secret-page', (req, res) => { | |||
}); | |||
|
|||
(async () => { | |||
await app.start(8080); | |||
await app.start(3000); |
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.
👌🏻
Thanks for the reviews! |
Summary
This pull request resolves #1335 by migrating to the new
handleInstallPath()
method, which is newly added in@slack/[email protected]
.Requirements (place an
x
in each[ ]
)