aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/Models
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/Models')
-rw-r--r--src/server/Models/Constants.cs9
-rw-r--r--src/server/Models/Database/PasswordReset.cs10
2 files changed, 18 insertions, 1 deletions
diff --git a/src/server/Models/Constants.cs b/src/server/Models/Constants.cs
index 04e8a2b..1e49323 100644
--- a/src/server/Models/Constants.cs
+++ b/src/server/Models/Constants.cs
@@ -1,24 +1,31 @@
using System.Collections.Generic;
+using System.Security.Claims;
namespace Dough.Models
{
public static class Constants
{
+ public static class ClaimNames
+ {
+ public static string Id = "sub";
+ }
+
public static readonly string[] BrowserAppUrls =
{
"http://localhost:8080",
"http://localhost:3000",
};
+
public static readonly string[] BrowserAppLoginRedirectUrls =
{
"http://localhost:8080/oidc-callback",
"http://localhost:3000/oidc-callback",
};
+
public static readonly string[] BrowserAppLogoutRedirectUrls =
{
"http://localhost:8080",
"http://localhost:3000",
};
-
}
} \ No newline at end of file
diff --git a/src/server/Models/Database/PasswordReset.cs b/src/server/Models/Database/PasswordReset.cs
new file mode 100644
index 0000000..c776d25
--- /dev/null
+++ b/src/server/Models/Database/PasswordReset.cs
@@ -0,0 +1,10 @@
+using System;
+
+namespace Dough.Models.Database
+{
+ public class PasswordResets : BaseModel
+ {
+ public Guid UserId { get; set; }
+ public DateTime Expires { get; set; }
+ }
+} \ No newline at end of file