Skip to content

Smart card support for windows  #271

@timotheeguerin

Description

@timotheeguerin

Currently you cannot login with smart card on windows

Need to look into the certificate selection

interface X509Certificate {
    issuerName: string;
    data: string;
}

app.on("select-client-certificate", (
        event: Event,
        webContents: Electron.WebContents,
        host: string,
        certificates: X509Certificate[],
        callback: (certificate: X509Certificate) => void) => {

        console.log("Show certificates", certificates);
        if (certificates.length <= 1) {
            // Default behavior is appropriate
            return false;
        }
        event.preventDefault();

        let index = -1;

        if (index >= 0) {
            callback(certificates[index]);
        }
        return true;
    });

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions