summaryrefslogtreecommitdiff
path: root/VPNAuth.Server/Database
diff options
context:
space:
mode:
Diffstat (limited to 'VPNAuth.Server/Database')
-rw-r--r--VPNAuth.Server/Database/Database.cs1
-rw-r--r--VPNAuth.Server/Database/UserInformation.cs13
2 files changed, 14 insertions, 0 deletions
diff --git a/VPNAuth.Server/Database/Database.cs b/VPNAuth.Server/Database/Database.cs
index a8cf8eb..b1f082d 100644
--- a/VPNAuth.Server/Database/Database.cs
+++ b/VPNAuth.Server/Database/Database.cs
@@ -11,4 +11,5 @@ public class Database : DbContext
public DbSet<AuthRequest> AuthRequests { get; set; }
public DbSet<AccessToken> AccessTokens { get; set; }
+ public DbSet<UserInformation> UserInformation { get; set; }
}
diff --git a/VPNAuth.Server/Database/UserInformation.cs b/VPNAuth.Server/Database/UserInformation.cs
new file mode 100644
index 0000000..fc6926d
--- /dev/null
+++ b/VPNAuth.Server/Database/UserInformation.cs
@@ -0,0 +1,13 @@
+namespace VPNAuth.Server.Database;
+
+public class UserInformation
+{
+ public int Id { get; set; }
+ public string? Sub { get; set; } // username in config.json
+ public string? Name { get; set; }
+ public string? GivenName { get; set; }
+ public string? FamilyName { get; set; }
+ public string? PreferredUsername { get; set; }
+ public string? Email { get; set; }
+ public string? Picture { get; set; }
+}