The documentation for version 3.8.3 for social media login is extremely vague, merely pointing developers to the Microsoft documentation. This article will try to answer the question of enabling social media for ABP directly.
To enable authentication via Google we must add the Microsoft.AspNetCore.Authenticateion.Google package to the .Web.Host project.
dotnet add package Microsoft.AspNetCore.Authentication.Google
Then, in AuthConfigurer.cs in the Configure function add:
if (bool.Parse(_appConfiguration["Authentication:Google:IsEnabled"]))
{
services.AddAuthentication().AddGoogle(googleOptions =>
{
googleOptions.ClientId = _appConfiguration["Authentication:Google:ClientId"];
googleOptions.ClientSecret = _appConfiguration["Authentication:Google:ClientSecret"];
});
}