I'm confused on how the Web API implements the authentication?
I have gone through the links 1.
and need to summarize what I understood.
Owin katana is a mechanism that can be implemented for authorization.
There will be Iprincipal which can be created either in the host or in the httpmodule which will be attached to the currentthread to validate.
Token based authentication implements owin.
I have very little idea about the authentication mechanism in web api. If someone can help me to understand this, It would be great.
I have the following doubts.
- Owin is a new way of authentication in MVC? or its already exists as a part of windows and form based authentication?
- If I wrote a module to authenticate what are the different ways I can use to authenticate an api method/controller?