This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Microsoft.AspNetCore.Authentication.Cookies; | |
| using Microsoft.AspNetCore.Authentication.MicrosoftAccount; | |
| using Microsoft.AspNetCore.Authentication.OpenIdConnect; | |
| using Microsoft.Identity.Web; | |
| using Microsoft.IdentityModel.Protocols.OpenIdConnect; | |
| using System.Security.Claims; | |
| namespace AzureAD | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace AzureAD | |
| { | |
| using System.Collections.Generic; | |
| using Microsoft.Extensions.Options; | |
| using Umbraco.Cms.Web.Common.Security; | |
| using Umbraco.Cms.Core; | |
| public class AzureB2CMembersExternalLoginProviderOptions : IConfigureNamedOptions<MemberExternalLoginProviderOptions> | |
| { | |
| public const string SchemeName = "OpenIdConnect"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void ConfigureServices(IServiceCollection services) | |
| { | |
| services.AddUmbraco(_env, _config) | |
| .AddBackOffice() | |
| .AddWebsite() | |
| .AddComposers() | |
| .ConfigureAuthenticationMembers() | |
| .Build(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Security.Claims; | |
| namespace AzureAD | |
| { | |
| public static class MemberAuthenticationExtensions | |
| { | |
| public static IUmbracoBuilder ConfigureAuthenticationMembers(this IUmbracoBuilder builder) | |
| { | |
| builder.Services.ConfigureOptions<AzureB2CMembersExternalLoginProviderOptions>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Microsoft.Extensions.Options; | |
| using Umbraco.Cms.Core; | |
| using Umbraco.Cms.Web.BackOffice.Security; | |
| namespace AzureAD | |
| { | |
| public class AzureB2CBackofficeExternalLoginProviderOptions : IConfigureNamedOptions<BackOfficeExternalLoginProviderOptions> | |
| { | |
| public const string SchemeName = "OpenIdConnect"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void ConfigureServices(IServiceCollection services) | |
| { | |
| services.AddUmbraco(_env, _config) | |
| .AddBackOffice() | |
| .AddWebsite() | |
| .AddComposers() | |
| .ConfigureAuthentication() | |
| .ConfigureAuthenticationMembers() | |
| .Build(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Microsoft.AspNetCore.Authentication.Cookies; | |
| using Microsoft.AspNetCore.Authentication.MicrosoftAccount; | |
| using Microsoft.AspNetCore.Authentication.OpenIdConnect; | |
| using Microsoft.Identity.Web; | |
| using Microsoft.IdentityModel.Protocols.OpenIdConnect; | |
| using System.Security.Claims; | |
| namespace AzureAD | |
| { |