# Launch Secured Node-Red dashboard (UI) from C# or ASP.NET APP

**URL:** https://discourse.nodered.org/t/launch-secured-node-red-dashboard-ui-from-c-or-asp-net-app/80715
**Category:** General
**Tags:** node-red-dashboard, security
**Created:** [22 August 2023 13:23 UTC](https://discourse.nodered.org/t/launch-secured-node-red-dashboard-ui-from-c-or-asp-net-app/80715 "2023-08-22T13:23:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![halukmy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/halukmy/32/31192_2.png) [@halukmy](https://discourse.nodered.org/u/halukmy)
#### Post date: [22 August 2023 13:23 UTC](https://discourse.nodered.org/t/launch-secured-node-red-dashboard-ui-from-c-or-asp-net-app/80715/1 "2023-08-22T13:23:59Z")

</div>

Hello everyone,  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/0/40737e35b16f792f568b906d6d96e4b0780fd70a.png)

is there possible to login this form via alternative code or web form ui?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/9/594e6f652c54e65f0a47a2a3c56c51f9029d9326.png)

string url = "[http://40.87.141.219:1880/ui](http://40.87.141.219:1880/ui)"; // Node-RED sunucu adresinizi ve port numarasını girin  
string username = "user";  
string password = "areytech";

```
    using (HttpClient client = new HttpClient())
    {
        // Kullanıcı adı ve şifreyi Base64 ile kodlama
        string base64Auth = Convert.ToBase64String(Encoding.ASCII.GetBytes($"{username}:{password}"));

        // "Authorization" başlığını ekleyin
        client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", base64Auth);

        // GET isteği oluşturun (örnek olarak)
        HttpResponseMessage response = await client.GetAsync(url);

        if (response.IsSuccessStatusCode)
        {
            string responseContent = await response.Content.ReadAsStringAsync();
            Console.WriteLine("Response: " + responseContent);
        }
        else
        {
            Console.WriteLine("Request failed with status code: " + response.StatusCode);
        }
}

```

This is my login code but, always get fault,

what i try to do, if i make login with c# application, than there is no required to login again,  
is it possible with basic auth?

---

<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: [21 October 2023 13:24 UTC](https://discourse.nodered.org/t/launch-secured-node-red-dashboard-ui-from-c-or-asp-net-app/80715/2 "2023-10-21T13:24:04Z")

</div>

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