Blog of Denis VOITURON

AspNetCore WebAPI - Google Authentication

Posted on 2019-08-09

More and more projects have sections secured by Google, Twitter or Microsoft identities.
For example, for Google, you must create an ID and specify the return URL.
Then you must activate the Google Authentication service and secure your methods via [Authorize].
The first call of a secure method automatically redirects you to the Google page.

Create a Google ID

The first step is to configure Google API to create a project ID, to be used in our application: