You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/security/authentication/social/google-logins.md
+4-7Lines changed: 4 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,17 +53,14 @@ You can manage your API credentials and usage in the [API Console](https://conso
53
53
54
54
## Configure Google authentication
55
55
56
-
Add the [`Google.Apis.Auth.AspNetCore3`](https://www.nuget.org/packages/Google.Apis.Auth.AspNetCore3) NuGet package to the app.
57
-
58
-
59
-
Add the Authentication service to the `program.cs`:
60
-
61
-
Follow this link [`Add Authtication for asp.net app`](https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth#configure-your-application-to-use-google.apis.auth.aspnetcore3)
56
+
* Add the [`Google.Apis.Auth.AspNetCore3`](https://www.nuget.org/packages/Google.Apis.Auth.AspNetCore3) NuGet package to the app.
57
+
* Add the Authentication service to the `program.cs`:
58
+
* Follow [`Add Authtication for asp.net app`](https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth#configure-your-application-to-use-google.apis.auth.aspnetcore3)
* Go to [google developer library link ](https://developers.google.com/identity/gsi/web/guides/client-library) to get link of library.
63
+
* Get a link to the libary at [google developer library link ](https://developers.google.com/identity/gsi/web/guides/client-library) to get link of library.
67
64
* Then go to [google developer button genration ](https://developers.google.com/identity/gsi/web/tools/configurator)
68
65
* Setup your Controller to match with ` data-login_uri="{HostName}/{ControllerName}/{actionName}" ` attrbute because after success login it will forward you to that link.
69
66
* Create controller and action takes one argement `string credential` because that what google return when complete login process.
0 commit comments