locked
forms authentication / authorisation in webapi RRS feed

  • Question

  • User-1799713556 posted

    Hi, this is probably a dumb question, but is it possible to implement forms authorisation in a standalone webapi application, or does there need to be an asp/mvc site in the same project?

    ie, can I have webapi actions that allow me to register, login, then call other actions all over the api - without using a browser to login and get the authentication cookie? So I could call and log into the system from, say, a console application.

    I'm getting confused as I am creating WebApi with individual user account authentication in VS 2013 and my AccountsController seems to have every action except "Login".

    Thanks a lot for any help,

    HT.

    Monday, May 25, 2015 12:51 AM

Answers

  • User-1799713556 posted

    Yeah, thanks, I posted the question the first time and the website gave me a "down for maintenance" error. So I went back in, checked the question wasn't there, reposted, then both appeared! 

    Cheers,

    HT

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, May 26, 2015 4:45 AM

All replies

  • User1644755831 posted

    Hello hightower2000,

    As per your other same post your question has been already answered here.

    http://forums.asp.net/t/2052009.aspx

    With Regards,

    Krunal Parekh

    Tuesday, May 26, 2015 3:20 AM
  • User-1799713556 posted

    Yeah, thanks, I posted the question the first time and the website gave me a "down for maintenance" error. So I went back in, checked the question wasn't there, reposted, then both appeared! 

    Cheers,

    HT

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, May 26, 2015 4:45 AM