NancyFx / Nancy.MSOwinSecurity

Nancy Owin Security integration
MIT License
30 stars 14 forks source link

Question - JWT and/or Token Auth #6

Closed sgentile closed 9 years ago

sgentile commented 9 years ago

I'm trying to determine if this is the correct solution (the MSOwinSecurity) - I want to use a similiar setup outlined here http://bitoftech.net/2014/10/27/json-web-token-asp-net-web-api-2-jwt-owin-authorization-server/ but with Nancy.

Is this possible ?

damianh commented 9 years ago

Yes the same all the way 'till step Step 2.4: Add new protected controller. Instead of [Authorize] use RequiresMSOwinAuthentication. Good news is that the upcoming Nancy 2.0 has ClaimsPrincipal support baked in, which will obsolete this lib from an authorization perspective. (Access to IAuthenticationManager will still to be integrated).

(Sorry for the slow response, dropped off my radar).

sgentile commented 9 years ago

Thanks