Added userinfo endpoint usage and api now properly creates necessary claims to start doing database stuff
This commit is contained in:
16
WebAPI/Data/Dto/PterodactylCreateUserRequest.cs
Normal file
16
WebAPI/Data/Dto/PterodactylCreateUserRequest.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace WebAPI.Data.Dto
|
||||
{
|
||||
public class PterodactylCreateUserRequest
|
||||
{
|
||||
public string Email { get; set; }
|
||||
public string Username { get; set; }
|
||||
[JsonProperty("external_id")]
|
||||
public string ExternalId { get; set; }
|
||||
[JsonProperty("first_name")]
|
||||
public string FirstName { get; set; }
|
||||
[JsonProperty("last_name")]
|
||||
public string LastName { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user