Update dotnet package version (#4814)
* Update dotnet package version Update that dotnet Add Package is required only in ASPNET Core 1.x and not in 2.x * Update google-logins.mdpull/4813/head
parent
2711ddb868
commit
34c7acb797
|
@ -82,13 +82,6 @@ The values for these tokens can be found in the JSON file downloaded in the prev
|
|||
|
||||
## Configure Google Authentication
|
||||
|
||||
The project template used in this tutorial ensures that [Microsoft.AspNetCore.Authentication.Google](https://www.nuget.org/packages/Microsoft.AspNetCore.Authentication.Google) package is installed.
|
||||
|
||||
* To install this package with Visual Studio 2017, right-click on the project and select **Manage NuGet Packages**.
|
||||
* To install with .NET Core CLI, execute the following in your project directory:
|
||||
|
||||
`dotnet add package Microsoft.AspNetCore.Authentication.Google`
|
||||
|
||||
# [ASP.NET Core 2.x](#tab/aspnetcore2x)
|
||||
|
||||
Add the Google service in the `ConfigureServices` method in *Startup.cs* file:
|
||||
|
@ -109,6 +102,13 @@ services.AddAuthentication().AddGoogle(googleOptions =>
|
|||
|
||||
# [ASP.NET Core 1.x](#tab/aspnetcore1x)
|
||||
|
||||
The project template used in this tutorial ensures that [Microsoft.AspNetCore.Authentication.Google](https://www.nuget.org/packages/Microsoft.AspNetCore.Authentication.Google) package is installed.
|
||||
|
||||
* To install this package with Visual Studio 2017, right-click on the project and select **Manage NuGet Packages**.
|
||||
* To install with .NET Core CLI, execute the following in your project directory:
|
||||
|
||||
`dotnet add package Microsoft.AspNetCore.Authentication.Google`
|
||||
|
||||
Add the Google middleware in the `Configure` method in *Startup.cs* file:
|
||||
|
||||
```csharp
|
||||
|
|
Loading…
Reference in New Issue