From bda1e81c87a34bc0e6d2ce805f706a726087e957 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sun, 30 Jan 2022 01:30:58 +0100 Subject: feat: WIP: Map github logins When github is used for login, we want to create a mapping to a regular user in our database. This is mainly so that we don't have to change the PK in our database or add a column to it. --- src/server/Api/Internal/OAuthCallbackRoute.cs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/server/Api/Internal/OAuthCallbackRoute.cs') diff --git a/src/server/Api/Internal/OAuthCallbackRoute.cs b/src/server/Api/Internal/OAuthCallbackRoute.cs index 156ff11..d2823c4 100644 --- a/src/server/Api/Internal/OAuthCallbackRoute.cs +++ b/src/server/Api/Internal/OAuthCallbackRoute.cs @@ -13,6 +13,7 @@ public class OAuthCallbackRoute : RouteBaseInternalSync.WithoutRequest.WithActio [ApiExplorerSettings(IgnoreApi = true)] [HttpGet("~/oauth-cb")] public override ActionResult Handle() { + Console.WriteLine(JsonSerializer.Serialize(HttpContext.User)); return Redirect(_configuration.GetValue("FRONTEND_CANONICAL_URL")); } } -- cgit v1.3