Answer the question
In order to leave comments, you need to log in
How to separate Auth service and Resource service?
In general, I wrote an Auth service (token based) and a certain resource (REST service). Both work for OWIN. Everything worked fine until I split them into 2 projects. I read the solutions:
1) set the same machineKey in Web.config (did not help, but since this is a mandatory item, I left it);
2) tried to swap elements of the OWIN pipeline - did not help
3) made sure that both OWIN projects have the same version - did not help
4) ? anything else you can suggest?
Let me remind you that everything works if you send requests to controllers inside the authorization service if they have the [Authorize] attribute. The same with the rest service does not work.
Thank you.
Answer the question
In order to leave comments, you need to log in
I rolled back OWIN from 3.0.1 to 3.0.0 and everything worked. Weird...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question