+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / JWT with forms authentication

JWT with forms authentication

2 posts, 0 answered
  1. Eric
    Eric avatar
    147 posts
    Registered:
    12 Nov 2007
    06 Sep
    Link to this post

    I'm using Sitefinity's default membership provider with forms authentication. I want to start developing microservices but need to authenticate these requests -- I need both the username and roles.

    I don't want to pass usernames/passwords each time using the Sitefinity dlls inside the microservices, kind of defeats the purpose of having small services if I have to bundle Sitefnity. I want my microservices to oblivious to Sitefinity.

    I've read that JWT (JSON Web Tokens) seem to be the way to go. Can that be done with Sitefinity's forms authentication?

    Thanks,
    Eric

  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    06 Sep in reply to Eric
    Link to this post

    I use JWT on ServiceStack with custom auth attributes on our services, works well...not with formsauth though, but would it be much different?

    https://github.com/ServiceStack/ServiceStack/wiki/JWT-AuthProvider

     

2 posts, 0 answered