View BackofficeAuthenticationExtensions.cs
This file contains 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 | |
{ |
View AzureB2CMembersExternalLoginProviderOptions.cs
This file contains 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"; |
View Startup.cs
This file contains 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(); | |
} |
View MemberAuthenticationExtensions.cs
This file contains 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>(); |
View AzureB2CBackofficeExternalLoginProviderOptions.cs
This file contains 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"; |
View Startup.cs
This file contains 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(); | |
} |
View BackofficeAuthenticationExtensions.cs
This file contains 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 | |
{ |