# Where are the views for BasicAuth?

**URL:** <https://forum.umbraco.com/t/where-are-the-views-for-basicauth/8745>\
**Category:** Questions\
**Created:** [November 16, 2026, 2:25am UTC](https://forum.umbraco.com/t/where-are-the-views-for-basicauth/8745 "2026-11-16T02:25:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![skartknet](https://forum.umbraco.com/user_avatar/forum.umbraco.com/skartknet/32/487_2.png) [@skartknet](https://forum.umbraco.com/u/skartknet)\
**Post date:** [November 16, 2026, 2:25am UTC](https://forum.umbraco.com/t/where-are-the-views-for-basicauth/8745/1 "2026-11-16T02:25:40Z")

</div>

I want to customize the login view for Basic Authentication. I see [in the docs](https://docs.umbraco.com/umbraco-cms/17.latest/run-in-production/security/basic-authentication?ask=how+do+I+get+a+copy+of+the+Login+template%3E?) that I can use the files at `/umbraco/BasicAuthLogin/Login.cshtml`. But I can’t find those files. Can anyone point me to the right location please?

---

<div class="post-metadata">

**Author:** ![alleaward](https://forum.umbraco.com/user_avatar/forum.umbraco.com/alleaward/32/6552_2.png) [@alleaward](https://forum.umbraco.com/u/alleaward)\
**Post date:** [November 16, 2026, 3:54am UTC](https://forum.umbraco.com/t/where-are-the-views-for-basicauth/8745/2 "2026-11-16T03:54:51Z")

</div>

Hi mate,

The files aren’t in your project. The built-in views are compiled into the `Umbraco.Cms.StaticAssets` package, and /umbraco/BasicAuthLogin/Login.cshtml is only the path they’re served from inside it.

**1. Copy the originals from GitHub.** Pick the tag that matches your Umbraco version (these links are 17.6.0):

- [Login.cshtml](https://github.com/umbraco/Umbraco-CMS/blob/6559750860a92447fefce76378c541cef1c54870/src/Umbraco.Cms.StaticAssets/umbraco/BasicAuthLogin/Login.cshtml)
- [TwoFactor.cshtml](https://github.com/umbraco/Umbraco-CMS/blob/6559750860a92447fefce76378c541cef1c54870/src/Umbraco.Cms.StaticAssets/umbraco/BasicAuthLogin/TwoFactor.cshtml)

**2. Save them in your project** , for example in `~/Views/BasicAuth/`. Change the markup and CSS as much as you like, but keep the `@model`, the anti-forgery token and the form fields as they are.

**3. Point Umbraco at them** in `appsettings.json`:

```auto
"Umbraco": {
  "CMS": {
    "BasicAuth": {
      "Enabled": true,
      "RedirectToLoginPage": true,
      "LoginViewPath": "~/Views/BasicAuth/Login.cshtml",
      "TwoFactorViewPath": "~/Views/BasicAuth/TwoFactor.cshtml"
    }
  }
}

```

Restart the site and you’ll see your view.

Two things I found while testing this on 17.6:

- Putting a file at the same path, /umbraco/BasicAuthLogin/Login.cshtml, does **not** replace the built-in view with the default project template. Use the settings above.
- Files in `wwwroot` load before Basic Auth runs, so your login page can use your own logo and CSS.

* * *

---

<div class="post-metadata">

**Author:** ![skartknet](https://forum.umbraco.com/user_avatar/forum.umbraco.com/skartknet/32/487_2.png) [@skartknet](https://forum.umbraco.com/u/skartknet)\
**Post date:** [November 16, 2026, 4:21am UTC](https://forum.umbraco.com/t/where-are-the-views-for-basicauth/8745/3 "2026-11-16T04:21:04Z")

</div>

Awesome, thank you! That worked.
