Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How to implement dynamic roles authorization in web api

$
0
0

I tried roles and policy based authrization. I need to map my dynamic value like this 

[Authorize(Roles=//set dynamically)]

dynamic value from table  RS.SupportSertvices

Based on userid i get this role (RS.SupportSertvices) from DB.

May i know how to implement this value [Authorize(Roles=RS.SupportSertvices)]


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>