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

How can we use 'Virtual Authenticator' for the applications that authenticate users in a passwordless manner. #1818

Open
techienomad opened this issue Apr 25, 2024 · 4 comments

Comments

@techienomad
Copy link

Virtual Authenticator is a representation of the Web Authenticator model to authenticate users in a passwordless manner.

This was implemented in all Selenium language bindings as per this issue.

How can we use this in the selenium-side-runner to authenticate the applications in the side script?

As per the Virtual Authenticator we need to pass some options, how can we pass these options in selenium-side-runner?

Thanks.

@toddtarsi
Copy link
Contributor

Good question! Maybe we should look at adding a new command for this? Of course, the big challenge here is that this does not map cleanly to two arguments. We need to at some point look at supporting more than two inputs anyway. Target / value for everything is really a poor abstraction. This will take a couple weeks, but I think it should be pursued in this order:

  1. Allow some commands to be defined in a "new" format that isn't attached to just target / value, and has better support for argument typing.
  2. Define this command in the new way.

@techienomad
Copy link
Author

Maybe we can use existing "targets" to have multiple values.

Shall I convert this into a Feature Proposal type so that this can be tracked as a new feature?

@toddtarsi
Copy link
Contributor

@techienomad - If you need something immediately for a project, you can just solve this with a plugin that meets your spec easily. You'd define it like this file. The driver object is an instance of selenium-webdriver, so it really should match up with the example you linked pretty seamlessly I think.

https://github.com/SeleniumHQ/selenium-ide/blob/14d01a40962dd89cf154c7e696fb8c9aef70fa4d/packages/side-example-suite/src/plugins/custom-click/index.ts

Plugins in v4 are just kind of written to be way easier to write. It's really just basically nodejs require with some extra checks for the object on default. If you write something and it seems really clean, you can even publish as it's own package like side-v4-plugin-add-virtual-authenticator-command or something like that and then people can just npm install it and add it to the project by name. Here's a bit more about that:

https://github.com/SeleniumHQ/selenium-ide/wiki/V4-Plugin-Guide

@techienomad
Copy link
Author

Hi @toddtarsi

This is not immediately required for my project. If you could provide this functionality as part of the side-runner then it would be great.

I will also go through the V4 plugin guide and get my hands dirty in building the new Authenticator plugin.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants