# Problem securing my node-red Admin and UI separate

**URL:** <https://discourse.nodered.org/t/problem-securing-my-node-red-admin-and-ui-separate/42759>\
**Category:** General\
**Created:** [17 March 2021 09:34 UTC](https://discourse.nodered.org/t/problem-securing-my-node-red-admin-and-ui-separate/42759 "2021-03-17T09:34:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mogmedia](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mogmedia/32/38589_2.png) [@mogmedia](https://discourse.nodered.org/u/mogmedia)\
**Post date:** [17 March 2021 09:34 UTC](https://discourse.nodered.org/t/problem-securing-my-node-red-admin-and-ui-separate/42759/1 "2021-03-17T09:34:43Z")

</div>

Hey  
i have a porblem securing my node-red Admin and UI separate.  
I want to have a secure Ui Dashboard and a different Admin user for the AdminPanel.

I used the following settings and if I log in the AdminPanel every thing works fine. But if I go to the Dashboard first I can't login to the AdminPanel , no error message is displayed and the login form will not disappear

What am I doing wrong?

```auto
httpAdminRoot: '/admin',
httpNodeRoot: '/app',
ui: { path: "/" },

adminAuth: {
        type: "credentials",
        users: [{
            username: "admin",
            password: "xxxx",
            permissions: "*"
        }]
    },

httpNodeAuth: {user:"admin",pass:"xxxx"},

```

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [17 March 2021 23:06 UTC](https://discourse.nodered.org/t/problem-securing-my-node-red-admin-and-ui-separate/42759/2 "2021-03-17T23:06:53Z")

</div>

> [@mogmedia](#):
>
> What am I doing wrong?

Is it because you are using the same user name for both the `adminAuth` and `httpNodeAuth`, whilst confusing the system by using different passwords?

Try changing the `httpNodeAuth` user name to "appAdmin".

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [17 March 2021 23:48 UTC](https://discourse.nodered.org/t/problem-securing-my-node-red-admin-and-ui-separate/42759/3 "2021-03-17T23:48:12Z")

</div>

What browser are you using? I seem to remember Safari has a known issue mishandling multiple authentication schemes on the same domain.

---

<div class="post-metadata">

**Author:** ![mogmedia](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mogmedia/32/38589_2.png) [@mogmedia](https://discourse.nodered.org/u/mogmedia)\
**Post date:** [18 March 2021 10:51 UTC](https://discourse.nodered.org/t/problem-securing-my-node-red-admin-and-ui-separate/42759/4 "2021-03-18T10:51:33Z")

</div>

I already tried to use different usernames with no luck

---

<div class="post-metadata">

**Author:** ![mogmedia](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mogmedia/32/38589_2.png) [@mogmedia](https://discourse.nodered.org/u/mogmedia)\
**Post date:** [18 March 2021 10:52 UTC](https://discourse.nodered.org/t/problem-securing-my-node-red-admin-and-ui-separate/42759/5 "2021-03-18T10:52:00Z")

</div>

yes, I am using Safari. Any change to avoid this problem?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 March 2021 11:07 UTC](https://discourse.nodered.org/t/problem-securing-my-node-red-admin-and-ui-separate/42759/6 "2021-03-18T11:07:34Z")

</div>

Try a different browser?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [18 March 2021 11:17 UTC](https://discourse.nodered.org/t/problem-securing-my-node-red-admin-and-ui-separate/42759/7 "2021-03-18T11:17:25Z")

</div>

No, we don't have a solution for it yet - [Cannot use Admin and Dashboard the same time on Safari (MacOS and iOS) · Issue #2842 · node-red/node-red · GitHub](https://github.com/node-red/node-red/issues/2842)

---

<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:** [17 May 2021 11:17 UTC](https://discourse.nodered.org/t/problem-securing-my-node-red-admin-and-ui-separate/42759/8 "2021-05-17T11:17:37Z")

</div>

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