Comments (2)
- On the web project, in the endpoints folder, comment the lines below the .RequireAuthorization() in the override Map method for all the endpoints.
- Web project, Infrastructure folder, static class IEndpointRouteBuilderExtensions, comment all lines with Guard.Against.AnonymousMethod(handler);
- web project, Infrastructure folder, static class MethodInfoExtensions, static void AnonymousMethod, comment this line: if (input.Method.IsAnonymous())
- web project, Program.cs, comment lines: builder.Services.AddKeyVaultIfConfigured(builder.Configuration); and builder.Services.AddWebServices();
- web project, static class DependencyInjection, copy all the services from IServiceCollection AddWebServices() method and paste it in Program.cs, replace "services." by "builder.Services."
- Try scaffolding again.
- If successful, web project/Areas/Identity/Pages/Account -> check the .cs files to replace "IdentityUser" by "ApplicationUser" and also change it on page _ManageNav.cshtml (@Inject SignInManager"ApplicationUser" SignInManager)
- web project, Program.cs, remove newly added dbContext connection.
- Before testing, revert back the changes from step 1 to 5.
It worked for me.
from cleanarchitecture.
- On the web project, in the endpoints folder, comment the lines below the .RequireAuthorization() in the override Map method for all the endpoints.
- Web project, Infrastructure folder, static class IEndpointRouteBuilderExtensions, comment all lines with Guard.Against.AnonymousMethod(handler);
- web project, Infrastructure folder, static class MethodInfoExtensions, static void AnonymousMethod, comment this line: if (input.Method.IsAnonymous())
- web project, Program.cs, comment lines: builder.Services.AddKeyVaultIfConfigured(builder.Configuration); and builder.Services.AddWebServices();
- web project, static class DependencyInjection, copy all the services from IServiceCollection AddWebServices() method and paste it in Program.cs, replace "services." by "builder.Services."
- Try scaffolding again.
- If successful, web project/Areas/Identity/Pages/Account -> check the .cs files to replace "IdentityUser" by "ApplicationUser" and also change it on page _ManageNav.cshtml (@Inject SignInManager"ApplicationUser" SignInManager)
- web project, Program.cs, remove newly added dbContext connection.
- Before testing, revert back the changes from step 1 to 5.
It worked for me.
I did all the steps and it worked, thank you very much.
from cleanarchitecture.
Related Issues (20)
- Add Web.GrpcServer [gRPC Server] HOT 1
- Can not get Entity.Id on Events (always 0) HOT 1
- Migrations Issues
- Angular 17, standalone HOT 2
- Can't create migrations HOT 2
- Swagger Specifications are incomplete
- FluentValidation not triggered HOT 2
- upgrade angular spa client to 17 HOT 2
- Angular 17 post data to dotnet core8. Json deserialisation of bool failed HOT 1
- Implement Universal Reflection-Driven MappingProfile for Cleaner DTOs HOT 1
- Azure.Identity 1.10.4 moderate severity vulnerability HOT 5
- Default password seeding not working properly
- SqlException: Invalid object name 'Serilogs'. HOT 2
- {"type":"https://tools.ietf.org/html/rfc7231#section-6.6.1","title":"An error occurred while processing your request.","status":500}
- Could I use file .env following ASPNETCORE_ENVIRONMENT ?
- ✨ Add PostgreSQL support
- LoggingBehaviour in the Application project doesn't do anything
- Internal server error if a invalid parameter is sent on the route
- Boilerplate without "test" entities such as TodoListItem, TodoList and WheaterForecast
- Replace AutoMapper with Mapperly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cleanarchitecture.