Skip to content
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

Smart card support for windows #271

Closed
timotheeguerin opened this issue Mar 27, 2017 · 0 comments · Fixed by #672
Closed

Smart card support for windows #271

timotheeguerin opened this issue Mar 27, 2017 · 0 comments · Fixed by #672
Milestone

Comments

@timotheeguerin
Copy link
Member

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;
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant