Repository navigation
feat: support WebSocket authentication handling - #48512
Conversation
webRequest.onAuthRequired() socket handlingwebRequest.onAuthRequired() authentication handling
webRequest.onAuthRequired() authentication handlingwebRequest.onAuthRequired() authentication handling
75e879e to
b0719f8
Compare
b0719f8 to
b632cf8
Compare
|
The PR has a merge conflict. |
b632cf8 to
9ca61d2
Compare
751d167 to
c8f3f3f
Compare
deepak1556
left a comment
There was a problem hiding this comment.
High level question, the current webRequest.onAuthRequired is specific to handling auth for websockets. Have we considered wiring it into our existing auth logic via the LoginHandler which emits app#login or webContents#login (depending on the session) instead of another entry point to handle authentication ?
deepak1556
left a comment
There was a problem hiding this comment.
Having a full featured/consistent set of webRequest APIs seems useful, even if there's some overlap with the existing login events.
We are creating a special handling for websockets authentication. I would rather align with our existing login handling which already manages multiple session types.
If we want the webrequest api as a consistent interface then it should also handle auth for other connection types as well, then in that case we should also decide a priority in auth handling callbacks given a user could setup multiple of them
app.on('login')
session.webrequest.onAuthRequired
1072da1 to
96fc2cf
Compare
|
@electron/wg-api I refactored this per discussion with @deepak1556 - after some though I think his point that we should run WebSocket auth through the existing |
96fc2cf to
9a351e4
Compare
53d3746 to
e8cca0a
Compare
|
Release Notes Persisted
|
|
I was unable to backport this PR to "40-x-y" cleanly; |
|
I was unable to backport this PR to "39-x-y" cleanly; |
* feat: support WebSocket authentication handling * test: add a test * refactor: route through login instead
* feat: support WebSocket authentication handling * test: add a test * refactor: route through login instead
* feat: support WebSocket authentication handling * test: add a test * refactor: route through login instead
|
@codebytere has manually backported this PR to "40-x-y", please check out #49064 |
|
@codebytere has manually backported this PR to "39-x-y", please check out #49065 |
Description of Change
Refs #48505.
This PR adds handling for the 'login' event to allow authentication via web sockets.
Checklist
npm testpassesRelease Notes
Notes: Added support for WebSocket authentication through the
loginevent onwebContents.