Add createWithIdentV2 (.well-known stapling)
This commit is contained in:
11
MareSynchronosAPI/Dto/AuthReplyDto.cs
Normal file
11
MareSynchronosAPI/Dto/AuthReplyDto.cs
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
using MareSynchronos.API.Data;
|
||||||
|
using MessagePack;
|
||||||
|
|
||||||
|
namespace MareSynchronos.API.Dto;
|
||||||
|
|
||||||
|
[MessagePackObject(keyAsPropertyName: true)]
|
||||||
|
public record AuthReplyDto
|
||||||
|
{
|
||||||
|
public string Token { get; set; } = string.Empty;
|
||||||
|
public string? WellKnown { get; set; }
|
||||||
|
}
|
||||||
@@ -2,10 +2,11 @@
|
|||||||
|
|
||||||
public class MareAuth
|
public class MareAuth
|
||||||
{
|
{
|
||||||
|
|
||||||
public const string Auth = "/auth";
|
public const string Auth = "/auth";
|
||||||
public const string Auth_CreateIdent = "createWithIdent";
|
public const string Auth_CreateIdent = "createWithIdent";
|
||||||
|
public const string Auth_CreateIdentV2 = "createWithIdentV2";
|
||||||
public const string Auth_Register = "registerNewKey";
|
public const string Auth_Register = "registerNewKey";
|
||||||
public static Uri AuthFullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_CreateIdent);
|
public static Uri AuthFullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_CreateIdent);
|
||||||
|
public static Uri AuthV2FullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_CreateIdentV2);
|
||||||
public static Uri AuthRegisterFullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_Register);
|
public static Uri AuthRegisterFullPath(Uri baseUri) => new Uri(baseUri, Auth + "/" + Auth_Register);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user