From dd5da99f77e6b38dd789e94314298c91aab949ea Mon Sep 17 00:00:00 2001 From: Josh Deck Date: Thu, 8 Aug 2024 13:17:41 -0400 Subject: [PATCH] Facebook login flow --- TSC2/Components/CSharp/Credentials.cs | 3 + TSC2/Components/Layout/MainLayout.razor | 7 +- TSC2/Components/Layout/MainLayout.razor.cs | 17 ++- TSC2/Components/Pages/FacebookSignIn.razor | 116 +++++++++++++++++++++ TSC2/Components/Pages/GoogleSignIn.razor | 6 +- TSC2/Components/Pages/Home.razor | 2 +- TSC2/Components/Pages/Home.razor.cs | 7 +- 7 files changed, 148 insertions(+), 10 deletions(-) create mode 100644 TSC2/Components/Pages/FacebookSignIn.razor diff --git a/TSC2/Components/CSharp/Credentials.cs b/TSC2/Components/CSharp/Credentials.cs index 1e54f08..e5a9312 100644 --- a/TSC2/Components/CSharp/Credentials.cs +++ b/TSC2/Components/CSharp/Credentials.cs @@ -4,5 +4,8 @@ { public static string GoogleClientId = "656434530552-03u6d8t2lpf1phuq6qkq0getfh9d7di9.apps.googleusercontent.com"; public static string GoogleClientSecret = "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"; + + public static string FacebookAppId = "791426466201326"; + public static string FacebookClientSecret = "13ae28aac6727b898ba712eb78ab0f24"; } } diff --git a/TSC2/Components/Layout/MainLayout.razor b/TSC2/Components/Layout/MainLayout.razor index 0a64380..a8eef1b 100644 --- a/TSC2/Components/Layout/MainLayout.razor +++ b/TSC2/Components/Layout/MainLayout.razor @@ -1,5 +1,7 @@ @inherits LayoutComponentBase +@inject NavigationManager _navigationManager + @@ -14,11 +16,14 @@