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
+2-12Lines changed: 2 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,18 +51,6 @@ Store sensitive settings such as the Google client ID and secret values with [Se
51
51
52
52
You can manage your API credentials and usage in the [API Console](https://console.developers.google.com/apis/dashboard).
53
53
54
-
## Sign in with Google `Google.Apis.Auth.AspNetCore3` version
55
-
56
-
* Run the app and select **Log in**. An option to sign in with Google appears.
57
-
* Select the **Google** button, which redirects to Google for authentication.
58
-
* After entering your Google credentials, you are redirected back to the web site.
59
-
60
-
[!INCLUDE[Forward request information when behind a proxy or load balancer section](includes/forwarded-headers-middleware.md)]
61
-
62
-
[!INCLUDE[](includes/chain-auth-providers.md)]
63
-
64
-
For more information on configuration options supported by Google authentication, see the <xref:Microsoft.AspNetCore.Authentication.Google.GoogleOptions> API reference . This can be used to request different information about the user.
65
-
66
54
## Configure Google authentication
67
55
68
56
Add the [`Google.Apis.Auth.AspNetCore3`](https://www.nuget.org/packages/Google.Apis.Auth.AspNetCore3) NuGet package to the app.
@@ -87,6 +75,8 @@ Follow this link [`Add Authtication for asp.net app`](https://developers.google.
87
75
88
76
For more information on configuration options supported by Google authentication, see the <xref:Microsoft.AspNetCore.Authentication.Google.GoogleOptions> API reference . This can be used to request different information about the user.
89
77
78
+
[!INCLUDE[Forward request information when behind a proxy or load balancer section](includes/forwarded-headers-middleware.md)]
79
+
90
80
## Change the default callback URI
91
81
92
82
The URI segment `/signin-google` is set as the default callback of the Google authentication provider. You can change the default callback URI while configuring the Google authentication middleware via the inherited <xref:Microsoft.AspNetCore.Authentication.RemoteAuthenticationOptions.CallbackPath?displayProperty=nameWithType> property of the <xref:Microsoft.AspNetCore.Authentication.Google.GoogleOptions> class.
0 commit comments