c# - How to use claims in WebApi with OAuth -
i have webapi2 app oauth authentication , use claims associate user id access token, in controller can know user accessing.
q1. approach?
q2. there way access claims values outside controller in owin webapi app? 1 case when bind services in di container , want pass user id service
- a1: yes 1 of trending authentication/authorization approaches.
- a1. put current user identity in thread.currentprincipal , has claims member have current user id
Comments
Post a Comment