Sesión 4: 4h14m
Implementar la securización en el servicio
- Implementar la securización en el servicio Library.Service
- Cuanto ejecute mi servicio, este me debe pedir un token el cual será validado contra el proveedor de identidad.
- Agregamos extensiones: Library.Service/Infrastructure/Security/Extensions
- Modificar archivo Library.Service/Infrastructure/Extensions/InfrastructureExtensions.cs
- Activar autenticación/autorización de .NET en Program.cs
- app.UseAuthentication()
- app.UseAuthorization()
Agregar el mecanismo de seguridad a los Endpoints de manera granular
No comments:
Post a Comment