From b92ddc1da1c4b80c4c97d441fe9ac19e6173a5df Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Sun, 19 Jan 2025 00:10:45 -0600 Subject: [PATCH] chore: stub out outline of post --- .../index.md | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 src/Blog/wwwroot/posts/how-to-authenticate-with-google-in-a-console-app/index.md diff --git a/src/Blog/wwwroot/posts/how-to-authenticate-with-google-in-a-console-app/index.md b/src/Blog/wwwroot/posts/how-to-authenticate-with-google-in-a-console-app/index.md new file mode 100644 index 0000000..720923b --- /dev/null +++ b/src/Blog/wwwroot/posts/how-to-authenticate-with-google-in-a-console-app/index.md @@ -0,0 +1,56 @@ +```json meta +{ + "title": "How to Authenticate with Google in a Console App", + "lead": "", + "isPublished": true, + "publishedAt": "2025-01-19", + "openGraphImage": "posts/how-to-authenticate-with-google-in-a-console-app/og-image.png", +} +``` + +I've taken a bit of a detour laterly into learning about how to authenticate a console app with Google so that the app can access Google APIs. I figured others might want to build similar apps, so I decided to write up a small example of how you do it. Keep in mind that the following is up to date and relevant as of the time of writing, but as we all know things in the tech world are always subject to change. + +## Prerequisites + +Before we get started, you'll want to make sure you have the following: + +1. A Google account +2. A version of the dotnet SDK installed on your machine + +## Configuring the Google Cloud Console + + + +### Create a New Project + + + +### Configure the OAuth Consent Screen + + + +### Create OAuth 2.0 Credentials + + + +## Setting Up the Console App + + +### Create Console App Configuration + + +### Build the Authentication URL + + +### Get the Authorization Code + + +### Get the Access Token + + +### Make a Request to a Google API + + +## Conclusion + +