Initial Commit

This commit is contained in:
Stillkill committed 2026-02-09 20:14:49 -06:00
commit 518159ea7f
7 files changed
+127

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
namespace GiteaPublish.Gitea;
public class BasicAuthModel
{
public string AuthHeader => Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes($"{_username}:{_password}"));
private readonly string _username;
private readonly string _password;
public BasicAuthModel(string username, string password)
{
_username = username;
_password = password;
}
}