Closed galenp closed 10 years ago
To clarify... my nancy api is sitting inside an app that is using ThinkTecture IdentityServer for tokens. When fully wired up I have an authenticated end-user submitting requests with a valid token.
With this package I am able to use this.RequiresMSOwinAuthentication(); and pull the user up in Nancy.... everything works nice.
However im trying to write a small integration test where I'm manually sending the request and I'm not entirely sure of the complete set up of plumbing required I guess to emulate the MsOwin/Token authentication conditions.
Thanks
Hi Damian
Are you able to provide a demonstration of performing a test to a nancy module secured with this.RequiresMSOwinAuthentication();
Specifically what's the approach to tell Owin that this is an authorised request.
I'm currently using the following:
Where "Token" is a valid encoded Access Token. I suspect there is some missing Katana/Owin plumbing required that validates the request.
Thanks