This is an example of how to use ASP.NET Core's Google authentication.
The purpose of using this ASP.NET Core's Google authentication example is to show you how to integrate Google external login, and how to set it up in ASP.NET Core.
The application uses ASP.NET Core MVC and integrates with the Google Cloud Service.
We show you how to set up a Google Cloud Service application and how to integrate it into the MVC app. You will need to get your own client ID and client secret from Google in-order to use this application successfully.
When you download the source code from the repository, you will be required to input your Google credentials into the application.
From there, you will be able to view an authentication page using your Google login account.
This is the software that will need to be installed onto your machine.
These are the steps to get the application working.
ClientId
from the Google Cloud Console service into the line 38 of RoundTheCode.GoogleAuthentication/Startup.cs
from the source code.ClientSecret
from the Google Cloud Console service into the line 39 of RoundTheCode.GoogleAuthentication/Startup.cs
from the source code.From there:
https://localhost:8888
in your favourite web browser.If you are unsure on how to get the application working, you can watch our live stream that we did on Google Authentication.
We created a new project in Google Cloud Platform, set up Google authentication in an ASP.NET Core application and watch the Google authentication in action, including the claims that are exposed from Google.