Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
using Grand.Business.Core.Interfaces.Authentication;
namespace Authentication.Google;
public class GoogleAuthenticationProvider : IExternalAuthenticationProvider
{
private readonly GoogleExternalAuthSettings _googleExternalAuthSettings;
public GoogleAuthenticationProvider(GoogleExternalAuthSettings googleExternalAuthSettings)
{
_googleExternalAuthSettings = googleExternalAuthSettings;
}
public string ConfigurationUrl => GoogleAuthenticationDefaults.ConfigurationUrl;
public string SystemName => GoogleAuthenticationDefaults.ProviderSystemName;
public string FriendlyName => "Google authentication";
public int Priority => _googleExternalAuthSettings.DisplayOrder;
public IList<string> LimitedToStores => new List<string>();
public IList<string> LimitedToGroups => new List<string>();
/// <summary>
/// Gets a view component for displaying plugin in public store
/// </summary>
public async Task<string> GetPublicViewComponentName()
{
return await Task.FromResult("GoogleAuthentication");
}
}