Kentico 12 MVC web api2 owin authentication

Ashish Kashyap asked on February 6, 2020 08:42

I have installed Kentico 12 Dancing goat site and on top of that I want to create Wepapi2 controller for Angular front end. I am always getting null for HttpContext object even when I am using "AccountController" of "Dancing Goat" controller. Appreciate for your help.

Recent Answers


Dat Nguyen answered on February 6, 2020 10:37

I'm assuming you're trying to access session data in a Web API controller. Sessions are not intended to be accessed there. That said, this information gives you a workaround and also discusses why you should not use session data with Web API.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.