mirror of
https://git.stillkill.net/Stillkill/GiteaPublish.git
synced 2026-10-22 05:32:18 +01:00
19 lines
474 B
C#
19 lines
474 B
C#
namespace GiteaPublish.Gitea;
|
|
|
|
public class BasicAuthModel
|
|
{
|
|
public string AuthHeader => Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes($"{_username}:{_password}"));
|
|
|
|
private readonly string _username = string.Empty;
|
|
private readonly string _password = string.Empty;
|
|
|
|
public BasicAuthModel(string username, string password)
|
|
{
|
|
_username = username;
|
|
_password = password;
|
|
}
|
|
|
|
public BasicAuthModel()
|
|
{
|
|
}
|
|
} |