Skip to content

Investigate support for app#login event to auth requests from utility process #212949

Closed

Description

@deepak1556

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.

Activity

  1. added
    feature-request
    upstream
    electron
    on May 17, 2024
  2. added this to the June 2024 milestone on May 17, 2024
  3. 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
  4. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Jul 13, 2024
  5. added
    verification-needed
    on Jul 23, 2024
  6. deepak1556 commented on Jul 23, 2024

    @deepak1556
    CollaboratorAuthor

    Steps for verification: It would be good if this was verified on either linux or windows

    • Enable the following setting
    "github.copilot.advanced": {
            "debug.useElectronFetcher": true
    },
    

    Reference #221552 (comment)

  7. locked and limited conversation to collaborators on Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

electronfeature-requestinsiders-releasedupstreamverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions