Updated MoonCore dependencies. Switched to asp.net core native authentication scheme abstractions. Updated claim usage in frontend
This commit is contained in:
20
Moonlight.Shared/Http/Responses/Auth/AuthClaimResponse.cs
Normal file
20
Moonlight.Shared/Http/Responses/Auth/AuthClaimResponse.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Auth;
|
||||
|
||||
public class AuthClaimResponse
|
||||
{
|
||||
// ReSharper disable once UnusedMember.Global
|
||||
// Its used by the json serializer ^^
|
||||
public AuthClaimResponse()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public AuthClaimResponse(string type, string value)
|
||||
{
|
||||
Type = type;
|
||||
Value = value;
|
||||
}
|
||||
|
||||
public string Type { get; set; }
|
||||
public string Value { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Auth;
|
||||
|
||||
public class AuthSchemeResponse
|
||||
{
|
||||
public string DisplayName { get; set; }
|
||||
public string Identifier { get; set; }
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Auth;
|
||||
|
||||
public class CheckResponse
|
||||
{
|
||||
public string Username { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string[] Permissions { get; set; }
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Auth;
|
||||
|
||||
public class LoginCompleteResponse
|
||||
{
|
||||
public string AccessToken { get; set; }
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Auth;
|
||||
|
||||
public class LoginStartResponse
|
||||
{
|
||||
public string Url { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user