Globally authorize JWT in .NET Core -


i'm using custom jwt in .net core project jose-jwt. (all other auth methods tried confusing hell.) have implemented, i'm not sure how can verify token on each request. of functions in api require auth, i'd register globally , specify functions don't require (essentially [allowanonymous]). i'd 401 returned if auth fails.

i don't need code written me, i'm not sure how write , insert pipeline. how can accomplish this? going right way?

validating jwt validating basic auth request.

look @ https://github.com/blowdart/idunno.authentication middleware implementation.


Comments