1 // Copyright (c) .NET Foundation. All rights reserved. 2 // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 4 using System; 5 using Microsoft.AspNetCore.Authentication; 6 7 namespace Identity.DefaultUI.WebSite 8 { 9 public static class ContosoAuthenticationBuilderExtensions 10 { AddContosoAuthentication( this AuthenticationBuilder builder, Action<ContosoAuthenticationOptions> configure)11 public static AuthenticationBuilder AddContosoAuthentication( 12 this AuthenticationBuilder builder, 13 Action<ContosoAuthenticationOptions> configure) => 14 builder.AddScheme<ContosoAuthenticationOptions, ContosoAuthenticationHandler>( 15 ContosoAuthenticationConstants.Scheme, 16 ContosoAuthenticationConstants.DisplayName, 17 configure); 18 } 19 } 20