How can I filter requests in ASP.NET Core by user role before calling API
I have an ASP.NET Core Web API secured by JWT and authorization enabled. The API is being consumed with a Blazor client app. I am using services based on REFIT to call the API from the client. The Authorization is based on role and working well. However, I’d like to add an intermediate service which let me filter the API requests / routes based on logged-in user roles BEFORE calling the API.
How can I filter requests in ASP.NET Core by user role before calling API
I have an ASP.NET Core Web API secured by JWT and authorization enabled. The API is being consumed with a Blazor client app. I am using services based on REFIT to call the API from the client. The Authorization is based on role and working well. However, I’d like to add an intermediate service which let me filter the API requests / routes based on logged-in user roles BEFORE calling the API.
How can I filter requests in ASP.NET Core by user role before calling API
I have an ASP.NET Core Web API secured by JWT and authorization enabled. The API is being consumed with a Blazor client app. I am using services based on REFIT to call the API from the client. The Authorization is based on role and working well. However, I’d like to add an intermediate service which let me filter the API requests / routes based on logged-in user roles BEFORE calling the API.
How can I filter requests in ASP.NET Core by user role before calling API
I have an ASP.NET Core Web API secured by JWT and authorization enabled. The API is being consumed with a Blazor client app. I am using services based on REFIT to call the API from the client. The Authorization is based on role and working well. However, I’d like to add an intermediate service which let me filter the API requests / routes based on logged-in user roles BEFORE calling the API.