16 changed files
WPE.App.Base | ||
AppAttribute.cs | ||
AppComponent.cs | ||
BaseAttribute.cs | ||
DisplayNameAttribute.cs | ||
IAppExtensions.cs | ||
INameParameter.cs | ||
IPoIParameters.cs | ||
IQueryParameters.cs | ||
IScopeProvider.cs | ||
ISubscriptionParameter.cs | ||
NavEntryAttribute.cs | ||
PoIAttribute.cs | ||
RouteMapping.cs | ||
TileAttribute.cs | ||
WPE.App.Base.csproj | ||
azure-pipelines.yml | ||
Add comment 1 using Infsoft.WPE.App.Authentication.Base;
Add comment 2 using Infsoft.WPE.App.Authentication.Base.Models;
Add comment 3 Plus using Infsoft.WPE.App.Authentication.Base.Business;
Add comment 3 4 using Infsoft.WPE.App.Authentication.Maui.Business;
Add comment 4 5 using Infsoft.WPE.App.Authentication.Maui.Business.Flow;
Add comment 5 6 using Infsoft.WPE.App.Authentication.Maui.Business.Token;
Add comment 24 25 /// <param name="subscriptionKeyConfig">Allows tzhe configuration of hosts to set a subscriptionKey for</param>
Add comment 25 26 /// <returns>ServiceCollection to chain calls</returns>
Add comment 26 27 internal static IServiceCollection AddNativeAuthentication(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) =>
Add comment 27 Minus services.AddNativeAuthentication<NativeAuthenticationStateProvider>(authConfig, subscriptionKeyConfig);
Add comment 28 Plus services.AddNativeAuthentication<NoOpTenantResolver>(authConfig, subscriptionKeyConfig);
Add comment 28 29
Add comment 29 30 /// <summary>
Add comment 30 31 /// Add all required authentication services for a native login (using web authenticator) and the subscriptionKey handler
Add comment 31 32 /// </summary>
Add comment 32 Minus /// <typeparam name="TAuthenticationStateProvider">Allows for a customized implementation</typeparam>
Add comment 33 Plus /// <typeparam name="TTenantResolver">Allows for tenant code resolution</typeparam>
Add comment 33 34 /// <param name="services">Service collection to add to</param>
Add comment 34 35 /// <param name="authConfig">Allows the configuration of token request endpoints</param>
Add comment 35 36 /// <param name="subscriptionKeyConfig">Allows tzhe configuration of hosts to set a subscriptionKey for</param>
Add comment 36 37 /// <returns>ServiceCollection to chain calls</returns>
Add comment 37 Minus internal static IServiceCollection AddNativeAuthentication<TAuthenticationStateProvider>(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) where TAuthenticationStateProvider : NativeAuthenticationStateProvider
Add comment 38 Plus internal static IServiceCollection AddNativeAuthentication<TTenantResolver>(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) where TTenantResolver : class, ITenantResolver
Add comment 38 39 {
Add comment 39 40 services.AddOptions();
Add comment 40 41 services.AddAuthorizationCore();
Add comment 49 50 #endif
Add comment 50 51
Add comment 51 52 services.AddSingleton<IAuthClient, AuthClient>();
Add comment 52 Minus services.AddBaseAuthentication<TAuthenticationStateProvider>();
Add comment 53 Plus services.AddBaseAuthentication<NativeAuthenticationStateProvider, TTenantResolver>();
Add comment 53 54
Add comment 54 55 services.AddTransient<AuthorizationMessageHandler>();
Add comment 55 56 services.Configure(authConfig);
Add comment 1 using Infsoft.WPE.App.Authentication.Base;
Add comment 2 using Infsoft.WPE.App.Authentication.Base.Models;
Add comment 3 Plus using Infsoft.WPE.App.Authentication.Base.Business;
Add comment 3 4 using Infsoft.WPE.App.Authentication.Maui.Business;
Add comment 4 5 using Infsoft.WPE.App.Authentication.Maui.Business.Flow;
Add comment 5 6 using Infsoft.WPE.App.Authentication.Maui.Business.Token;
Add comment 24 25 /// <param name="subscriptionKeyConfig">Allows tzhe configuration of hosts to set a subscriptionKey for</param>
Add comment 25 26 /// <returns>ServiceCollection to chain calls</returns>
Add comment 26 27 internal static IServiceCollection AddNativeAuthentication(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) =>
Add comment 27 Minus services.AddNativeAuthentication<NativeAuthenticationStateProvider>(authConfig, subscriptionKeyConfig);
Add comment 28 Plus services.AddNativeAuthentication<NoOpTenantResolver>(authConfig, subscriptionKeyConfig);
Add comment 28 29
Add comment 29 30 /// <summary>
Add comment 30 31 /// Add all required authentication services for a native login (using web authenticator) and the subscriptionKey handler
Add comment 31 32 /// </summary>
Add comment 32 Minus /// <typeparam name="TAuthenticationStateProvider">Allows for a customized implementation</typeparam>
Add comment 33 Plus /// <typeparam name="TTenantResolver">Allows for tenant code resolution</typeparam>
Add comment 33 34 /// <param name="services">Service collection to add to</param>
Add comment 34 35 /// <param name="authConfig">Allows the configuration of token request endpoints</param>
Add comment 35 36 /// <param name="subscriptionKeyConfig">Allows tzhe configuration of hosts to set a subscriptionKey for</param>
Add comment 36 37 /// <returns>ServiceCollection to chain calls</returns>
Add comment 37 Minus internal static IServiceCollection AddNativeAuthentication<TAuthenticationStateProvider>(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) where TAuthenticationStateProvider : NativeAuthenticationStateProvider
Add comment 38 Plus internal static IServiceCollection AddNativeAuthentication<TTenantResolver>(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) where TTenantResolver : class, ITenantResolver
Add comment 38 39 {
Add comment 39 40 services.AddOptions();
Add comment 40 41 services.AddAuthorizationCore();
Add comment 49 50 #endif
Add comment 50 51
Add comment 51 52 services.AddSingleton<IAuthClient, AuthClient>();
Add comment 52 Minus services.AddBaseAuthentication<TAuthenticationStateProvider>();
Add comment 53 Plus services.AddBaseAuthentication<NativeAuthenticationStateProvider, TTenantResolver>();
Add comment 53 54
Add comment 54 55 services.AddTransient<AuthorizationMessageHandler>();
Add comment 55 56 services.Configure(authConfig);
Add comment 1 using Infsoft.WPE.App.Authentication.Base;
Add comment 2 using Infsoft.WPE.App.Authentication.Base.Models;
Add comment 3 Plus using Infsoft.WPE.App.Authentication.Base.Business;
Add comment 3 4 using Infsoft.WPE.App.Authentication.Maui.Business;
Add comment 4 5 using Infsoft.WPE.App.Authentication.Maui.Business.Flow;
Add comment 5 6 using Infsoft.WPE.App.Authentication.Maui.Business.Token;
Add comment 24 25 /// <param name="subscriptionKeyConfig">Allows tzhe configuration of hosts to set a subscriptionKey for</param>
Add comment 25 26 /// <returns>ServiceCollection to chain calls</returns>
Add comment 26 27 internal static IServiceCollection AddNativeAuthentication(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) =>
Add comment 27 Minus services.AddNativeAuthentication<NativeAuthenticationStateProvider>(authConfig, subscriptionKeyConfig);
Add comment 28 Plus services.AddNativeAuthentication<NoOpTenantResolver>(authConfig, subscriptionKeyConfig);
Add comment 28 29
Add comment 29 30 /// <summary>
Add comment 30 31 /// Add all required authentication services for a native login (using web authenticator) and the subscriptionKey handler
Add comment 31 32 /// </summary>
Add comment 32 Minus /// <typeparam name="TAuthenticationStateProvider">Allows for a customized implementation</typeparam>
Add comment 33 Plus /// <typeparam name="TTenantResolver">Allows for tenant code resolution</typeparam>
Add comment 33 34 /// <param name="services">Service collection to add to</param>
Add comment 34 35 /// <param name="authConfig">Allows the configuration of token request endpoints</param>
Add comment 35 36 /// <param name="subscriptionKeyConfig">Allows tzhe configuration of hosts to set a subscriptionKey for</param>
Add comment 36 37 /// <returns>ServiceCollection to chain calls</returns>
Add comment 37 Minus internal static IServiceCollection AddNativeAuthentication<TAuthenticationStateProvider>(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) where TAuthenticationStateProvider : NativeAuthenticationStateProvider
Add comment 38 Plus internal static IServiceCollection AddNativeAuthentication<TTenantResolver>(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) where TTenantResolver : class, ITenantResolver
Add comment 38 39 {
Add comment 39 40 services.AddOptions();
Add comment 40 41 services.AddAuthorizationCore();
Add comment 49 50 #endif
Add comment 50 51
Add comment 51 52 services.AddSingleton<IAuthClient, AuthClient>();
Add comment 52 Minus services.AddBaseAuthentication<TAuthenticationStateProvider>();
Add comment 53 Plus services.AddBaseAuthentication<NativeAuthenticationStateProvider, TTenantResolver>();
Add comment 53 54
Add comment 54 55 services.AddTransient<AuthorizationMessageHandler>();
Add comment 55 56 services.Configure(authConfig);
DisplayNameAttribute.cs
/WPE.App.Base/DisplayNameAttribute.cs-4+5/WPE.App.Base/DisplayNameAttribute.cs
Add comment 1 using Infsoft.WPE.App.Authentication.Base;
Add comment 2 using Infsoft.WPE.App.Authentication.Base.Models;
Add comment 3 Plus using Infsoft.WPE.App.Authentication.Base.Business;
Add comment 3 4 using Infsoft.WPE.App.Authentication.Maui.Business;
Add comment 4 5 using Infsoft.WPE.App.Authentication.Maui.Business.Flow;
Add comment 5 6 using Infsoft.WPE.App.Authentication.Maui.Business.Token;
Add comment 24 25 /// <param name="subscriptionKeyConfig">Allows tzhe configuration of hosts to set a subscriptionKey for</param>
Add comment 25 26 /// <returns>ServiceCollection to chain calls</returns>
Add comment 26 27 internal static IServiceCollection AddNativeAuthentication(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) =>
Add comment 27 Minus services.AddNativeAuthentication<NativeAuthenticationStateProvider>(authConfig, subscriptionKeyConfig);
Add comment 28 Plus services.AddNativeAuthentication<NoOpTenantResolver>(authConfig, subscriptionKeyConfig);
Add comment 28 29
Add comment 29 30 /// <summary>
Add comment 30 31 /// Add all required authentication services for a native login (using web authenticator) and the subscriptionKey handler
Add comment 31 32 /// </summary>
Add comment 32 Minus /// <typeparam name="TAuthenticationStateProvider">Allows for a customized implementation</typeparam>
Add comment 33 Plus /// <typeparam name="TTenantResolver">Allows for tenant code resolution</typeparam>
Add comment 33 34 /// <param name="services">Service collection to add to</param>
Add comment 34 35 /// <param name="authConfig">Allows the configuration of token request endpoints</param>
Add comment 35 36 /// <param name="subscriptionKeyConfig">Allows tzhe configuration of hosts to set a subscriptionKey for</param>
Add comment 36 37 /// <returns>ServiceCollection to chain calls</returns>
Add comment 37 Minus internal static IServiceCollection AddNativeAuthentication<TAuthenticationStateProvider>(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) where TAuthenticationStateProvider : NativeAuthenticationStateProvider
Add comment 38 Plus internal static IServiceCollection AddNativeAuthentication<TTenantResolver>(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) where TTenantResolver : class, ITenantResolver
Add comment 38 39 {
Add comment 39 40 services.AddOptions();
Add comment 40 41 services.AddAuthorizationCore();
Add comment 49 50 #endif
Add comment 50 51
Add comment 51 52 services.AddSingleton<IAuthClient, AuthClient>();
Add comment 52 Minus services.AddBaseAuthentication<TAuthenticationStateProvider>();
Add comment 53 Plus services.AddBaseAuthentication<NativeAuthenticationStateProvider, TTenantResolver>();
Add comment 53 54
Add comment 54 55 services.AddTransient<AuthorizationMessageHandler>();
Add comment 55 56 services.Configure(authConfig);
Add comment 1 using Infsoft.WPE.App.Authentication.Base;
Add comment 2 using Infsoft.WPE.App.Authentication.Base.Models;
Add comment 3 Plus using Infsoft.WPE.App.Authentication.Base.Business;
Add comment 3 4 using Infsoft.WPE.App.Authentication.Maui.Business;
Add comment 4 5 using Infsoft.WPE.App.Authentication.Maui.Business.Flow;
Add comment 5 6 using Infsoft.WPE.App.Authentication.Maui.Business.Token;
Add comment 24 25 /// <param name="subscriptionKeyConfig">Allows tzhe configuration of hosts to set a subscriptionKey for</param>
Add comment 25 26 /// <returns>ServiceCollection to chain calls</returns>
Add comment 26 27 internal static IServiceCollection AddNativeAuthentication(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) =>
Add comment 27 Minus services.AddNativeAuthentication<NativeAuthenticationStateProvider>(authConfig, subscriptionKeyConfig);
Add comment 28 Plus services.AddNativeAuthentication<NoOpTenantResolver>(authConfig, subscriptionKeyConfig);
Add comment 28 29
Add comment 29 30 /// <summary>
Add comment 30 31 /// Add all required authentication services for a native login (using web authenticator) and the subscriptionKey handler
Add comment 31 32 /// </summary>
Add comment 32 Minus /// <typeparam name="TAuthenticationStateProvider">Allows for a customized implementation</typeparam>
Add comment 33 Plus /// <typeparam name="TTenantResolver">Allows for tenant code resolution</typeparam>
Add comment 33 34 /// <param name="services">Service collection to add to</param>
Add comment 34 35 /// <param name="authConfig">Allows the configuration of token request endpoints</param>
Add comment 35 36 /// <param name="subscriptionKeyConfig">Allows tzhe configuration of hosts to set a subscriptionKey for</param>
Add comment 36 37 /// <returns>ServiceCollection to chain calls</returns>
Add comment 37 Minus internal static IServiceCollection AddNativeAuthentication<TAuthenticationStateProvider>(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) where TAuthenticationStateProvider : NativeAuthenticationStateProvider
Add comment 38 Plus internal static IServiceCollection AddNativeAuthentication<TTenantResolver>(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) where TTenantResolver : class, ITenantResolver
Add comment 38 39 {
Add comment 39 40 services.AddOptions();
Add comment 40 41 services.AddAuthorizationCore();
Add comment 49 50 #endif
Add comment 50 51
Add comment 51 52 services.AddSingleton<IAuthClient, AuthClient>();
Add comment 52 Minus services.AddBaseAuthentication<TAuthenticationStateProvider>();
Add comment 53 Plus services.AddBaseAuthentication<NativeAuthenticationStateProvider, TTenantResolver>();
Add comment 53 54
Add comment 54 55 services.AddTransient<AuthorizationMessageHandler>();
Add comment 55 56 services.Configure(authConfig);
Add comment 1 using Infsoft.WPE.App.Authentication.Base;
Add comment 2 using Infsoft.WPE.App.Authentication.Base.Models;
Add comment 3 Plus using Infsoft.WPE.App.Authentication.Base.Business;
Add comment 3 4 using Infsoft.WPE.App.Authentication.Maui.Business;
Add comment 4 5 using Infsoft.WPE.App.Authentication.Maui.Business.Flow;
Add comment 5 6 using Infsoft.WPE.App.Authentication.Maui.Business.Token;
Add comment 24 25 /// <param name="subscriptionKeyConfig">Allows tzhe configuration of hosts to set a subscriptionKey for</param>
Add comment 25 26 /// <returns>ServiceCollection to chain calls</returns>
Add comment 26 27 internal static IServiceCollection AddNativeAuthentication(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) =>
Add comment 27 Minus services.AddNativeAuthentication<NativeAuthenticationStateProvider>(authConfig, subscriptionKeyConfig);
Add comment 28 Plus services.AddNativeAuthentication<NoOpTenantResolver>(authConfig, subscriptionKeyConfig);
Add comment 28 29
Add comment 29 30 /// <summary>
Add comment 30 31 /// Add all required authentication services for a native login (using web authenticator) and the subscriptionKey handler
Add comment 31 32 /// </summary>
Add comment 32 Minus /// <typeparam name="TAuthenticationStateProvider">Allows for a customized implementation</typeparam>
Add comment 33 Plus /// <typeparam name="TTenantResolver">Allows for tenant code resolution</typeparam>
Add comment 33 34 /// <param name="services">Service collection to add to</param>
Add comment 34 35 /// <param name="authConfig">Allows the configuration of token request endpoints</param>
Add comment 35 36 /// <param name="subscriptionKeyConfig">Allows tzhe configuration of hosts to set a subscriptionKey for</param>
Add comment 36 37 /// <returns>ServiceCollection to chain calls</returns>
Add comment 37 Minus internal static IServiceCollection AddNativeAuthentication<TAuthenticationStateProvider>(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) where TAuthenticationStateProvider : NativeAuthenticationStateProvider
Add comment 38 Plus internal static IServiceCollection AddNativeAuthentication<TTenantResolver>(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) where TTenantResolver : class, ITenantResolver
Add comment 38 39 {
Add comment 39 40 services.AddOptions();
Add comment 40 41 services.AddAuthorizationCore();
Add comment 49 50 #endif
Add comment 50 51
Add comment 51 52 services.AddSingleton<IAuthClient, AuthClient>();
Add comment 52 Minus services.AddBaseAuthentication<TAuthenticationStateProvider>();
Add comment 53 Plus services.AddBaseAuthentication<NativeAuthenticationStateProvider, TTenantResolver>();
Add comment 53 54
Add comment 54 55 services.AddTransient<AuthorizationMessageHandler>();
Add comment 55 56 services.Configure(authConfig);
Add comment 1 using Infsoft.WPE.App.Authentication.Base;
Add comment 2 using Infsoft.WPE.App.Authentication.Base.Models;
Add comment 3 Plus using Infsoft.WPE.App.Authentication.Base.Business;
Add comment 3 4 using Infsoft.WPE.App.Authentication.Maui.Business;
Add comment 4 5 using Infsoft.WPE.App.Authentication.Maui.Business.Flow;
Add comment 5 6 using Infsoft.WPE.App.Authentication.Maui.Business.Token;
Add comment 24 25 /// <param name="subscriptionKeyConfig">Allows tzhe configuration of hosts to set a subscriptionKey for</param>
Add comment 25 26 /// <returns>ServiceCollection to chain calls</returns>
Add comment 26 27 internal static IServiceCollection AddNativeAuthentication(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) =>
Add comment 27 Minus services.AddNativeAuthentication<NativeAuthenticationStateProvider>(authConfig, subscriptionKeyConfig);
Add comment 28 Plus services.AddNativeAuthentication<NoOpTenantResolver>(authConfig, subscriptionKeyConfig);
Add comment 28 29
Add comment 29 30 /// <summary>
Add comment 30 31 /// Add all required authentication services for a native login (using web authenticator) and the subscriptionKey handler
Add comment 31 32 /// </summary>
Add comment 32 Minus /// <typeparam name="TAuthenticationStateProvider">Allows for a customized implementation</typeparam>
Add comment 33 Plus /// <typeparam name="TTenantResolver">Allows for tenant code resolution</typeparam>
Add comment 33 34 /// <param name="services">Service collection to add to</param>
Add comment 34 35 /// <param name="authConfig">Allows the configuration of token request endpoints</param>
Add comment 35 36 /// <param name="subscriptionKeyConfig">Allows tzhe configuration of hosts to set a subscriptionKey for</param>
Add comment 36 37 /// <returns>ServiceCollection to chain calls</returns>
Add comment 37 Minus internal static IServiceCollection AddNativeAuthentication<TAuthenticationStateProvider>(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) where TAuthenticationStateProvider : NativeAuthenticationStateProvider
Add comment 38 Plus internal static IServiceCollection AddNativeAuthentication<TTenantResolver>(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) where TTenantResolver : class, ITenantResolver
Add comment 38 39 {
Add comment 39 40 services.AddOptions();
Add comment 40 41 services.AddAuthorizationCore();
Add comment 49 50 #endif
Add comment 50 51
Add comment 51 52 services.AddSingleton<IAuthClient, AuthClient>();
Add comment 52 Minus services.AddBaseAuthentication<TAuthenticationStateProvider>();
Add comment 53 Plus services.AddBaseAuthentication<NativeAuthenticationStateProvider, TTenantResolver>();
Add comment 53 54
Add comment 54 55 services.AddTransient<AuthorizationMessageHandler>();
Add comment 55 56 services.Configure(authConfig);
Add comment 1 using Infsoft.WPE.App.Authentication.Base;
Add comment 2 using Infsoft.WPE.App.Authentication.Base.Models;
Add comment 3 Plus using Infsoft.WPE.App.Authentication.Base.Business;
Add comment 3 4 using Infsoft.WPE.App.Authentication.Maui.Business;
Add comment 4 5 using Infsoft.WPE.App.Authentication.Maui.Business.Flow;
Add comment 5 6 using Infsoft.WPE.App.Authentication.Maui.Business.Token;
Add comment 24 25 /// <param name="subscriptionKeyConfig">Allows tzhe configuration of hosts to set a subscriptionKey for</param>
Add comment 25 26 /// <returns>ServiceCollection to chain calls</returns>
Add comment 26 27 internal static IServiceCollection AddNativeAuthentication(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) =>
Add comment 27 Minus services.AddNativeAuthentication<NativeAuthenticationStateProvider>(authConfig, subscriptionKeyConfig);
Add comment 28 Plus services.AddNativeAuthentication<NoOpTenantResolver>(authConfig, subscriptionKeyConfig);
Add comment 28 29
Add comment 29 30 /// <summary>
Add comment 30 31 /// Add all required authentication services for a native login (using web authenticator) and the subscriptionKey handler
Add comment 31 32 /// </summary>
Add comment 32 Minus /// <typeparam name="TAuthenticationStateProvider">Allows for a customized implementation</typeparam>
Add comment 33 Plus /// <typeparam name="TTenantResolver">Allows for tenant code resolution</typeparam>
Add comment 33 34 /// <param name="services">Service collection to add to</param>
Add comment 34 35 /// <param name="authConfig">Allows the configuration of token request endpoints</param>
Add comment 35 36 /// <param name="subscriptionKeyConfig">Allows tzhe configuration of hosts to set a subscriptionKey for</param>
Add comment 36 37 /// <returns>ServiceCollection to chain calls</returns>
Add comment 37 Minus internal static IServiceCollection AddNativeAuthentication<TAuthenticationStateProvider>(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) where TAuthenticationStateProvider : NativeAuthenticationStateProvider
Add comment 38 Plus internal static IServiceCollection AddNativeAuthentication<TTenantResolver>(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) where TTenantResolver : class, ITenantResolver
Add comment 38 39 {
Add comment 39 40 services.AddOptions();
Add comment 40 41 services.AddAuthorizationCore();
Add comment 49 50 #endif
Add comment 50 51
Add comment 51 52 services.AddSingleton<IAuthClient, AuthClient>();
Add comment 52 Minus services.AddBaseAuthentication<TAuthenticationStateProvider>();
Add comment 53 Plus services.AddBaseAuthentication<NativeAuthenticationStateProvider, TTenantResolver>();
Add comment 53 54
Add comment 54 55 services.AddTransient<AuthorizationMessageHandler>();
Add comment 55 56 services.Configure(authConfig);
Add comment 1 using Infsoft.WPE.App.Authentication.Base;
Add comment 2 using Infsoft.WPE.App.Authentication.Base.Models;
Add comment 3 Plus using Infsoft.WPE.App.Authentication.Base.Business;
Add comment 3 4 using Infsoft.WPE.App.Authentication.Maui.Business;
Add comment 4 5 using Infsoft.WPE.App.Authentication.Maui.Business.Flow;
Add comment 5 6 using Infsoft.WPE.App.Authentication.Maui.Business.Token;
Add comment 24 25 /// <param name="subscriptionKeyConfig">Allows tzhe configuration of hosts to set a subscriptionKey for</param>
Add comment 25 26 /// <returns>ServiceCollection to chain calls</returns>
Add comment 26 27 internal static IServiceCollection AddNativeAuthentication(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) =>
Add comment 27 Minus services.AddNativeAuthentication<NativeAuthenticationStateProvider>(authConfig, subscriptionKeyConfig);
Add comment 28 Plus services.AddNativeAuthentication<NoOpTenantResolver>(authConfig, subscriptionKeyConfig);
Add comment 28 29
Add comment 29 30 /// <summary>
Add comment 30 31 /// Add all required authentication services for a native login (using web authenticator) and the subscriptionKey handler
Add comment 31 32 /// </summary>
Add comment 32 Minus /// <typeparam name="TAuthenticationStateProvider">Allows for a customized implementation</typeparam>
Add comment 33 Plus /// <typeparam name="TTenantResolver">Allows for tenant code resolution</typeparam>
Add comment 33 34 /// <param name="services">Service collection to add to</param>
Add comment 34 35 /// <param name="authConfig">Allows the configuration of token request endpoints</param>
Add comment 35 36 /// <param name="subscriptionKeyConfig">Allows tzhe configuration of hosts to set a subscriptionKey for</param>
Add comment 36 37 /// <returns>ServiceCollection to chain calls</returns>
Add comment 37 Minus internal static IServiceCollection AddNativeAuthentication<TAuthenticationStateProvider>(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) where TAuthenticationStateProvider : NativeAuthenticationStateProvider
Add comment 38 Plus internal static IServiceCollection AddNativeAuthentication<TTenantResolver>(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) where TTenantResolver : class, ITenantResolver
Add comment 38 39 {
Add comment 39 40 services.AddOptions();
Add comment 40 41 services.AddAuthorizationCore();
Add comment 49 50 #endif
Add comment 50 51
Add comment 51 52 services.AddSingleton<IAuthClient, AuthClient>();
Add comment 52 Minus services.AddBaseAuthentication<TAuthenticationStateProvider>();
Add comment 53 Plus services.AddBaseAuthentication<NativeAuthenticationStateProvider, TTenantResolver>();
Add comment 53 54
Add comment 54 55 services.AddTransient<AuthorizationMessageHandler>();
Add comment 55 56 services.Configure(authConfig);
ISubscriptionParameter.cs
/WPE.App.Base/ISubscriptionParameter.cs-4+5/WPE.App.Base/ISubscriptionParameter.cs
Add comment 1 using Infsoft.WPE.App.Authentication.Base;
Add comment 2 using Infsoft.WPE.App.Authentication.Base.Models;
Add comment 3 Plus using Infsoft.WPE.App.Authentication.Base.Business;
Add comment 3 4 using Infsoft.WPE.App.Authentication.Maui.Business;
Add comment 4 5 using Infsoft.WPE.App.Authentication.Maui.Business.Flow;
Add comment 5 6 using Infsoft.WPE.App.Authentication.Maui.Business.Token;
Add comment 24 25 /// <param name="subscriptionKeyConfig">Allows tzhe configuration of hosts to set a subscriptionKey for</param>
Add comment 25 26 /// <returns>ServiceCollection to chain calls</returns>
Add comment 26 27 internal static IServiceCollection AddNativeAuthentication(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) =>
Add comment 27 Minus services.AddNativeAuthentication<NativeAuthenticationStateProvider>(authConfig, subscriptionKeyConfig);
Add comment 28 Plus services.AddNativeAuthentication<NoOpTenantResolver>(authConfig, subscriptionKeyConfig);
Add comment 28 29
Add comment 29 30 /// <summary>
Add comment 30 31 /// Add all required authentication services for a native login (using web authenticator) and the subscriptionKey handler
Add comment 31 32 /// </summary>
Add comment 32 Minus /// <typeparam name="TAuthenticationStateProvider">Allows for a customized implementation</typeparam>
Add comment 33 Plus /// <typeparam name="TTenantResolver">Allows for tenant code resolution</typeparam>
Add comment 33 34 /// <param name="services">Service collection to add to</param>
Add comment 34 35 /// <param name="authConfig">Allows the configuration of token request endpoints</param>
Add comment 35 36 /// <param name="subscriptionKeyConfig">Allows tzhe configuration of hosts to set a subscriptionKey for</param>
Add comment 36 37 /// <returns>ServiceCollection to chain calls</returns>
Add comment 37 Minus internal static IServiceCollection AddNativeAuthentication<TAuthenticationStateProvider>(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) where TAuthenticationStateProvider : NativeAuthenticationStateProvider
Add comment 38 Plus internal static IServiceCollection AddNativeAuthentication<TTenantResolver>(this IServiceCollection services, Action<AuthenticationConfiguration> authConfig, Action<SubscriptionKeyConfiguration> subscriptionKeyConfig) where TTenantResolver : class, ITenantResolver
Add comment 38 39 {
Add comment 39 40 services.AddOptions();
Add comment 40 41 services.AddAuthorizationCore();
Add comment 49 50 #endif
Add comment 50 51
Add comment 51 52 services.AddSingleton<IAuthClient, AuthClient>();
Add comment 52 Minus services.AddBaseAuthentication<TAuthenticationStateProvider>();
Add comment 53 Plus services.AddBaseAuthentication<NativeAuthenticationStateProvider, TTenantResolver>();
Add comment 53 54
Add comment 54 55 services.AddTransient<AuthorizationMessageHandler>();
Add comment 55 56 services.Configure(authConfig);