Reorganized config. Re implemented auth controller to use token-pair authentication and oauth2
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Auth;
|
||||
|
||||
public class LoginResponse
|
||||
{
|
||||
public string Token { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Auth;
|
||||
|
||||
public class OAuth2HandleResponse
|
||||
{
|
||||
public string AccessToken { get; set; }
|
||||
public string RefreshToken { get; set; }
|
||||
public DateTime ExpiresAt { get; set; }
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Auth;
|
||||
|
||||
public class AuthStartResponse
|
||||
public class OAuth2StartResponse
|
||||
{
|
||||
public string Endpoint { get; set; }
|
||||
public string ClientId { get; set; }
|
||||
8
Moonlight.Shared/Http/Responses/Auth/RefreshResponse.cs
Normal file
8
Moonlight.Shared/Http/Responses/Auth/RefreshResponse.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Auth;
|
||||
|
||||
public class RefreshResponse
|
||||
{
|
||||
public string AccessToken { get; set; }
|
||||
public string RefreshToken { get; set; }
|
||||
public DateTime ExpiresAt { get; set; }
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
namespace Moonlight.Shared.Http.Responses.Auth;
|
||||
|
||||
public class RegisterResponse
|
||||
{
|
||||
public string Token { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user