Skip to content

Create none-interactive version of authentication #5

@shytikov

Description

@shytikov

It is possible to implement none-interactive version of this package if we know:

  • Organization URL;
  • Login / Password;
  • MFA secret key;

Idea is instead of just opening Electron and let users enter their credentials, actually open Electron without head and type in data, which user will normally do manually, basically implement EasyRepro / Selenium approach.

The only challenge here is Electron. As far as I can see puppeteer needs to be used (to fill in forms), but Electron is not shipped with its support. There are packages like puppeteer-in-electron, but for me they are triggering firewall confirmation window, because a port on localhost needs to be open.

I was lucky to accomplish this task using https://github.com/segmentio/nightmare and it's API is much nicer than just bare puppeteer.

I can assist in implementing, but I see following issues which I would prefer achieve some support in:

  • additional command line parameters, it would be already quite a few, and many of them are optional, so it could be that arguments handling could need some love;
  • electron parts, I might ruin things that I don't know are needed;
  • blessing to implement this feature;

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions