Rename debug user

This commit is contained in:
Laura Hausmann 2023-02-27 16:15:49 +01:00
parent 29a10ad2bb
commit 8b72d9167b
Signed by: zotan
GPG key ID: D044E84C5BE01605
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ namespace MediaManager;
public static class AuthUtil { public static class AuthUtil {
public static string GetRemoteUser(HttpContext ctx, Database.DbConn db) { public static string GetRemoteUser(HttpContext ctx, Database.DbConn db) {
#if (DEBUG) #if (DEBUG)
const string remoteUser = "zotan"; const string remoteUser = "debuguser";
#else #else
var remoteUser = ctx.Request.Headers["Remote-User"]; var remoteUser = ctx.Request.Headers["Remote-User"];
#endif #endif

View file

@ -1,7 +1,7 @@
# MediaManager # MediaManager
## DISCLAIMER ## DISCLAIMER
- This app uses the `Remote-User` header for authentication. For production use an auth proxy like Authelia is required. In development mode the user is set to `zotan` by default. This can be changed in `AuthUtil.cs`. - This app uses the `Remote-User` header for authentication. For production use an auth proxy like Authelia is required. In development mode the user is set to `debuguser` by default. This can be changed in `AuthUtil.cs`.
## Development / testing requirements ## Development / testing requirements
- .NET Core SDK (version 7.0 or higher; arch package `dotnet-sdk`) - .NET Core SDK (version 7.0 or higher; arch package `dotnet-sdk`)