You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Investigate support for app#login event to auth requests from utility process #212949
electronIssues and items related to Electronfeature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code InsidersupstreamIssue identified as 'upstream' component related (exists outside of VS Code)verification-neededVerification of issue is requestedverifiedVerification succeeded
It is of interest to apps to handle the login event with some UI in the main process that are triggered from the net API in the utility process. This is not possible today since the network::URLLoader only takes the observer that is passed in via the TrustedParams if not available then fallbacks to the one provided by URLLoaderFactory.
We can provide an option in the net API of the utility process to listen and respond to the observer events from the main process, this is already done for auth requests from renderer and service workers. StoragePartitionImpl acts as the observer in this case and eventually provides a way for embedder to respond to these requests via content::BrowserClient::CreateLoginDelegate. Electron already hooks into this interceptor and provides the app.#login event. We would need to add new wrapper method CreateAuthCertObserverForUtilityProcess, the primary need for this new wrapper is to avoid devtools interception in StoragePartitionImpl::LoginHandlerDelegate and also to uniquely identify requests from the utility process via the new enum kUtilityProcessContext.
changed the title [-]Investigate supporting multiple observers for UtilityProcess SimpleURLLoaderWrapper[/-][+]Investigate support for app#login event to auth requests from utility process[/+]on May 17, 2024
Set the proxy config using the following setting "http.proxy": "http://<host>:<port>"
Open copilot chat and start a prompt
You should see an auth dialog
Successful credentials should resume the response in the chat editor
electronIssues and items related to Electronfeature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code InsidersupstreamIssue identified as 'upstream' component related (exists outside of VS Code)verification-neededVerification of issue is requestedverifiedVerification succeeded
Activity
[-]Investigate supporting multiple observers for UtilityProcess SimpleURLLoaderWrapper[/-][+]Investigate support for app#login event to auth requests from utility process[/+]deepak1556 commentedon Jul 23, 2024
Steps for verification: It would be good if this was verified on either linux or windows
"http.proxy": "http://<host>:<port>"Reference #221552 (comment)