prevent dynamic apps from accessing login components accidentally
a892a01c
Michael Schmitz
committed
succeeded
2 changed files
ServiceCollectionExtensions.cs
/WPE.App.Authentication.Native/ServiceCollectionExtensions.cs-2+2
/WPE.App.Authentication.Native/ServiceCollectionExtensions.cs
Add comment 13 /// <summary>
Add comment 14 /// Provides extension methods to register all required services
Add comment 15 /// </summary>
Add comment 16 Minus   public static class ServiceCollectionExtensions
Add comment 16 Plus   internal static class ServiceCollectionExtensions
Add comment 17 {
Add comment 18 /// <summary>
Add comment 19 /// Add all required authentication services for a native login (using web authenticator)
Add comment 21 /// <param name="services">Service collection to add to</param>
Add comment 22 /// <param name="config">Allows the configuration of token request endpoints</param>
Add comment 23 /// <returns>ServiceCollection to chain calls</returns>
Add comment 24 Minus   public static IServiceCollection AddNativeAuthentication(this IServiceCollection services, Action<AuthenticationConfiguration> config)
Add comment 24 Plus   internal static IServiceCollection AddNativeAuthentication(this IServiceCollection services, Action<AuthenticationConfiguration> config)
Add comment 25 {
Add comment 26 services.AddOptions();
Add comment 27 services.AddAuthorizationCore();
WPE.App.Authentication.Native.csproj
/WPE.App.Authentication.Native/WPE.App.Authentication.Native.csproj-3+3
/WPE.App.Authentication.Native/WPE.App.Authentication.Native.csproj
Add comment 24 <PackageIcon>icon.png</PackageIcon>
Add comment 25 <PackageReadmeFile>ReadMe.md</PackageReadmeFile>
Add comment 26 <PackageTags>WPE;Workplace Experience;infsoft</PackageTags>
Add comment 27 Minus   <Version>0.1.0-next</Version>
Add comment 27 Plus   <Version>0.1.0-next01</Version>
Add comment 28 <GenerateDocumentationFile>true</GenerateDocumentationFile>
Add comment 29 </PropertyGroup>
Add comment 30
Add comment 31 <ItemGroup>
Add comment 32 Minus   <PackageReference Include="Infsoft.WPE.App.Authentication.Base" Version="0.1.0-next00" />
Add comment 33 Minus   <PackageReference Include="Infsoft.WPE.App.Services" Version="0.1.0-next00" />
Add comment 32 Plus   <PackageReference Include="Infsoft.WPE.App.Authentication.Base" Version="0.1.0-next02" />
Add comment 34 33 <PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
Add comment 35 34 <PackageReference Include="IdentityModel.OidcClient" Version="6.0.0" />
Add comment 36 35 <PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.5.2" />
Add comment 47 46 <Pack>True</Pack>
Add comment 48 47 <PackagePath>\</PackagePath>
Add comment 49 48 </None>
Add comment 49 Plus   <InternalsVisibleTo Include="Infsoft.WPE.App.Playground.Native;Infsoft.WPE.App.Native"/>
Add comment 50 </ItemGroup>
Add comment 51
Add comment 52 <PropertyGroup>