Skip to content

Instantly share code, notes, and snippets.

View cleversolutions's full-sized avatar
😀

Evan Moore cleversolutions

😀
View GitHub Profile
@cleversolutions
cleversolutions / GoogleAuthenticationExtensions.cs
Last active November 4, 2021 10:58
Add Google Authentication to an Umbraco 9 website
using Umbraco.Cms.Core.DependencyInjection;
using Umbraco.Extensions;
using Umbraco.Cms.Web.BackOffice.Security;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Configuration;
namespace Umbraco.Cms.Web.UI.NetCore.Configuration
{
public static class GoogleAuthenticationExtensions
{
public class ProductComponent : IComponent
{
private readonly IExamineManager _examineManager;
private readonly ProductIndexCreator _productIndexCreator;
public ProductComponent (IExamineManager examineManager, ProductIndexCreator productIndexCreator)
{
_examineManager = examineManager;
_productIndexCreator = productIndexCreator;
}