简体   繁体   中英

asp.net 4.5 login web api

I am building a solution where I am planning to have a front-end website communication with a web API (Rest) which in turn will communication with back-end systems such as DBs, internal company systems etc ...

The Web API will be use to communicate between the front-end and back-end but now, how can I handle the login features?

I'm using ASP.net 4.5 for both the Web API and the front-end website.

I can see the Identity module (framework?library? not sure about the naming) for login is fairly easy to use when we connect directly to a DB but how do I implement it with a Web API?

Do I need to create a UserStore to communicate with the Web API? Then a normal UserManager to handle Users and communicate with the custom UserStore?

Basically, what I'd like is to have the website use the Web API with "GetLogin(Login, password)" for example. The WebAPI would return the login detail to the website.

Thank you for your help!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM