Skip to content

A template for a simple .Net CRUD Api with authorization, automapping, mediator.

Notifications You must be signed in to change notification settings

MaksymKhanin/Simple-Crud-Api-Microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1. Go to Appsettings.Dev and set Auth:Authority - URL of Authentication server
2. In Program.cs setup cors (URL of apim, bff or front deployed to DEV)
3. For dev remove [Authorize] attribute in controller and add [AllowAnonymous].
4. When launch application, add /swagger to url.
5. If you have in Program.cs AddAuthentication(), UseAuthentication() or app.MapControllers().RequireAuthorization(), 
   you need to [AllowAnonymous] for controller. Otherwise it is enough just to remove [Authorize] attribute.
6. Your controller will return 404 (NotFound) if you don`t add app.MapContrllers();

About

A template for a simple .Net CRUD Api with authorization, automapping, mediator.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages