From 26f24553739a1144936878f5f26be75394729c2d Mon Sep 17 00:00:00 2001 From: Josh Deck Date: Mon, 5 Aug 2024 13:13:29 -0400 Subject: [PATCH] Google authentication --- TSC2/Components/CSharp/Credentials.cs | 8 ++ TSC2/Components/Layout/MainLayout.razor | 15 +++- TSC2/Components/Layout/MainLayout.razor.cs | 25 ++++++ TSC2/Components/Pages/GoogleSignIn.razor | 98 ++++++++++++++++++++++ TSC2/Program.cs | 4 + TSC2/TSC2.csproj | 1 + 6 files changed, 149 insertions(+), 2 deletions(-) create mode 100644 TSC2/Components/CSharp/Credentials.cs create mode 100644 TSC2/Components/Layout/MainLayout.razor.cs create mode 100644 TSC2/Components/Pages/GoogleSignIn.razor diff --git a/TSC2/Components/CSharp/Credentials.cs b/TSC2/Components/CSharp/Credentials.cs new file mode 100644 index 0000000..1e54f08 --- /dev/null +++ b/TSC2/Components/CSharp/Credentials.cs @@ -0,0 +1,8 @@ +namespace TSC2.Components.CSharp +{ + public class Credentials + { + public static string GoogleClientId = "656434530552-03u6d8t2lpf1phuq6qkq0getfh9d7di9.apps.googleusercontent.com"; + public static string GoogleClientSecret = "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"; + } +} diff --git a/TSC2/Components/Layout/MainLayout.razor b/TSC2/Components/Layout/MainLayout.razor index f5538e8..0a64380 100644 --- a/TSC2/Components/Layout/MainLayout.razor +++ b/TSC2/Components/Layout/MainLayout.razor @@ -8,14 +8,25 @@
- +