# \[Selenium\] Add Auth Capability to use Credentials

**URL:** <https://forum.knime.com/t/selenium-add-auth-capability-to-use-credentials/82804>\
**Category:** Community Extensions\
**Tags:** feature-request, palladian-selenium\
**Created:** [September 6, 2024, 5:36pm UTC](https://forum.knime.com/t/selenium-add-auth-capability-to-use-credentials/82804 "2024-09-06T17:36:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwiegand](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mwiegand/32/66896_2.png) [@mwiegand](https://forum.knime.com/u/mwiegand)\
**Post date:** [September 6, 2024, 5:36pm UTC](https://forum.knime.com/t/selenium-add-auth-capability-to-use-credentials/82804/1 "2024-09-06T17:36:02Z")

</div>

Hi @qqilihq,

do you believe it is possible to use credentials collected i.e. via the Credentials Widget:

> **[Credentials Widget](https://hub.knime.com/knime/extensions/org.knime.features.js.quickforms/latest/org.knime.js.base.node.widget.input.credentials.CredentialsWidgetNodeFactory)**
>
> Creates a credentials input widget for use in components views. Outputs a credentials flow variable with a given value. The node supports custom CSS styling. Y…

To send the user and pass? I haven’t fully thought this though in terms of security but I suppose the weak point is entering the data into fields which could be intercepted anyway.

Best  
Mike

---

<div class="post-metadata">

**Author:** ![qqilihq](https://forum-cdn.knime.com/user_avatar/forum.knime.com/qqilihq/32/50_2.png) [@qqilihq](https://forum.knime.com/u/qqilihq)\
**Post date:** [September 9, 2024, 6:14am UTC](https://forum.knime.com/t/selenium-add-auth-capability-to-use-credentials/82804/2 "2024-09-09T06:14:01Z")

</div>

Dear Mike,

could you please clarify in which node you’d like to use these? How would the desired flow look like?

Many thanks,  
Philipp

---

<div class="post-metadata">

**Author:** ![mwiegand](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mwiegand/32/66896_2.png) [@mwiegand](https://forum.knime.com/u/mwiegand)\
**Post date:** [September 9, 2024, 7:28am UTC](https://forum.knime.com/t/selenium-add-auth-capability-to-use-credentials/82804/3 "2024-09-09T07:28:39Z")

</div>

Good morning Philipp,

the semi functional setup looks like so:

**Provide Credentails**  
 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/3/f/3f25a99b590120be41f44aae2c8dd7b9fcaf94a0.png)

**Insert Credentials**

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/8/c/8c0ca891a5035b1ce1dba1c632c57c2770bcef79.png)

The send keys for the user works. Though, I extracted the provided user name. The find node with the comment “To be replaced” should theoretically be a Send keys node to send the password.

However, for security reasons, it might be necessary to create a dedicated node to send credentials in a more secure manner (just guess work atm.).

Best  
Mike

---

<div class="post-metadata">

**Author:** ![qqilihq](https://forum-cdn.knime.com/user_avatar/forum.knime.com/qqilihq/32/50_2.png) [@qqilihq](https://forum.knime.com/u/qqilihq)\
**Post date:** [September 11, 2024, 2:55pm UTC](https://forum.knime.com/t/selenium-add-auth-capability-to-use-credentials/82804/4 "2024-09-11T14:55:29Z")

</div>

Hi Mike,

I had a brief look into this and will consider this a “won’t do” for now. Reasons:

1. The “Credentials” term seems quite overloaded in KNIME land, yet underdocumented.

2. Credentials as combination of username and password cannot easily be mapped to [Send Keys](https://nodepit.com/node/ws.palladian.nodes.selenium.sendkeys2.SendKeys2NodeFactory) which always targets a single input.

3. “Send Keys” will inherently send all input unencrypted, unobfuscated - associating this with the term “credentials” might lead to invalid assumptions by end users (see 1.)

4. “Send Keys” cannot guarantee that a password input actually ends up in a “password” field (see 3.) and even if, their input values can easily be revealed within the browser.

Thus I think, plain string variables are the appropriate way here.

If I’m missing anything, I’m open for any further input!

-Philipp

---

<div class="post-metadata">

**Author:** ![mwiegand](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mwiegand/32/66896_2.png) [@mwiegand](https://forum.knime.com/u/mwiegand)\
**Post date:** [September 11, 2024, 5:23pm UTC](https://forum.knime.com/t/selenium-add-auth-capability-to-use-credentials/82804/5 "2024-09-11T17:23:16Z")

</div>

Hi Philipp,

yes, I fully agree. There is no point in passing the credentials if it ain’t in a save manner.

Cheers  
Mike

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [December 10, 2024, 5:24pm UTC](https://forum.knime.com/t/selenium-add-auth-capability-to-use-credentials/82804/6 "2024-12-10T17:24:02Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
