diff --git a/Controllers/XTestRepositoryController.cs b/Controllers/XTestRepositoryController.cs index 9bf4dca..31d5b72 100644 --- a/Controllers/XTestRepositoryController.cs +++ b/Controllers/XTestRepositoryController.cs @@ -1,5 +1,6 @@ using System; using System.Linq; +using Microsoft.AspNetCore.Authorization; using Microsoft.EntityFrameworkCore.Query; using Microsoft.Extensions.Logging; using xCommons.Configurations; @@ -11,6 +12,7 @@ using xServices.Models.Entities; namespace xServices.Controllers { + [AllowAnonymous] public partial class XTestRepositoryController : XBaseRepositoryController, IXBaseRepositoryController { public XTestRepositoryController( diff --git a/Controllers/XTestRepositoryProviderController.cs b/Controllers/XTestRepositoryProviderController.cs index 9434142..c2f32d5 100644 --- a/Controllers/XTestRepositoryProviderController.cs +++ b/Controllers/XTestRepositoryProviderController.cs @@ -1,5 +1,6 @@ using System; using System.Linq; +using Microsoft.AspNetCore.Authorization; using Microsoft.EntityFrameworkCore.Query; using Microsoft.Extensions.Logging; using xCommons.Configurations; @@ -13,6 +14,7 @@ using xServices.Providers; namespace xServices.Controllers { + [AllowAnonymous] public class XTestRepositoryProviderController : XBaseRepositoryProviderController, IXBaseRepositoryProviderController { public XTestRepositoryProviderController( @@ -21,8 +23,8 @@ namespace xServices.Controllers IXIdentityProvider identityProvider, XValidationProvider validationProvider, IXTestRepositoryProvider provider, - Func, IOrderedQueryable> defaultOrderBuilder, - Func, IIncludableQueryable> defaultIncludeBuilder + Func, IOrderedQueryable> defaultOrderBuilder = null, + Func, IIncludableQueryable> defaultIncludeBuilder = null ) : base( logger, appConfiguration, diff --git a/Controllers/XTestServiceController.cs b/Controllers/XTestServiceController.cs index c77e355..a64b8fc 100644 --- a/Controllers/XTestServiceController.cs +++ b/Controllers/XTestServiceController.cs @@ -1,5 +1,6 @@ using System; using System.Linq; +using Microsoft.AspNetCore.Authorization; using Microsoft.EntityFrameworkCore.Query; using Microsoft.Extensions.Logging; using xCommons.Configurations; @@ -12,6 +13,7 @@ using xServices.Models.Entities; namespace xServices.Controllers { + [AllowAnonymous] public class XTestServiceController : XBaseServiceController, IXBaseServiceController { public XTestServiceController( diff --git a/Controllers/XTestServiceProviderController.cs b/Controllers/XTestServiceProviderController.cs index c9f8f42..534a97b 100644 --- a/Controllers/XTestServiceProviderController.cs +++ b/Controllers/XTestServiceProviderController.cs @@ -1,5 +1,6 @@ using System; using System.Linq; +using Microsoft.AspNetCore.Authorization; using Microsoft.EntityFrameworkCore.Query; using Microsoft.Extensions.Logging; using xCommons.Configurations; @@ -14,6 +15,7 @@ using xServices.Providers; namespace xServices.Controllers { + [AllowAnonymous] public class XTestServiceProviderController : XBaseServiceProviderController, IXBaseServiceProviderController { public XTestServiceProviderController( @@ -22,8 +24,8 @@ namespace xServices.Controllers IXIdentityProvider identityProvider, XValidationProvider validationProvider, IXTestServiceProvider provider, - Func, IOrderedQueryable> defaultOrderBuilder, - Func, IIncludableQueryable> defaultIncludeBuilder + Func, IOrderedQueryable> defaultOrderBuilder = null, + Func, IIncludableQueryable> defaultIncludeBuilder = null ) : base( logger, appConfiguration, diff --git a/DI/XDIHelperExtension.cs b/DI/XDIHelperExtension.cs index 1616b9e..30c248d 100644 --- a/DI/XDIHelperExtension.cs +++ b/DI/XDIHelperExtension.cs @@ -216,10 +216,10 @@ namespace xServices.DI // #region Register Identity Service ... - // services.AddXIdentityService( - // configuration: configuration, - // lifeTime: ServiceLifetime.Scoped - // ); + services.AddXIdentityService( + configuration: configuration, + lifeTime: ServiceLifetime.Scoped + ); #endregion // diff --git a/nuget.config b/nuget.config index 184cdea..c6fd40c 100644 --- a/nuget.config +++ b/nuget.config @@ -3,6 +3,6 @@ - + \ No newline at end of file