I too, found myself looking for tutorials on how to implement authentication in WebSharper last year. Therefore I recently put together a blog post tutorial which describes how one can implement JWT Token and protect a sitelet behind a OWIN authentication middleware.

You can find the tutorial here.

Basically what the tutorial gives is indication on how to:

  1. store users credentials in a database and store password in a secure way.
  2. protect a selfhosted websharper sitelet behind a OWIN authentication middleware implementing JWT Token.

Another way would be to use Forms authentication, more information on an older post here http://www.websharper.com/question/79047/authentication-authorization-usersessions-cookies-and-tls

By on 1/23/2017 1:48 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper