# Accessing config node's credentials in Editor

**URL:** https://discourse.nodered.org/t/accessing-config-nodes-credentials-in-editor/57069
**Category:** Developing Nodes
**Created:** [22 January 2022 22:24 UTC](https://discourse.nodered.org/t/accessing-config-nodes-credentials-in-editor/57069 "2022-01-22T22:24:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ihrigb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ihrigb/32/54794_2.png) [@ihrigb](https://discourse.nodered.org/u/ihrigb)
#### Post date: [22 January 2022 22:24 UTC](https://discourse.nodered.org/t/accessing-config-nodes-credentials-in-editor/57069/1 "2022-01-22T22:24:54Z")

</div>

Hi,

I got a config node that has a few normal fields an some credentials:

```auto
        category: 'config',
        defaults: {
            name: {value: ''},
            host: {required: true},
            scheme: {value: 'http', required: true}
        },
        credentials: {
            username: {type: "text"},
            password: {type: "password"}
        }

```

Now in another node, that references the config node in a dropdown I want to do a request to the configured URL for the config node whenever another value is selected. I can access "scheme" and "host", but I cannot access username and password. I suppose it is not the ideal way to make them normal properties. Any way how I can handle this?

Thanks

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [23 March 2022 22:25 UTC](https://discourse.nodered.org/t/accessing-config-nodes-credentials-in-editor/57069/2 "2022-03-23T22:25:24Z")

</div>

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