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

Forums / General Discussions / Set Authentication cookie

Set Authentication cookie

4 posts, 0 answered
  1. Vladimir
    Vladimir avatar
    13 posts
    Registered:
    30 Apr 2015
    17 May 2015
    Link to this post

    Is there a way to set authentication cookie in Sitefinity without authenticating user in Sitefinity? Event custom membership provider does not suits me well. I saw there was a method in earlier versions of Sitefinity. I'm using Sitefinity 8.

    Thanks for any help!

  2. Joe
    Joe avatar
    3 posts
    Registered:
    11 Nov 2013
    18 May 2015
    Link to this post
    I would like to know as well.  I think I know what Vlad is trying to do and I can't figure out how to do it.  I've spend days on this.
  3. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    27 Sep 2016
    20 May 2015
    Link to this post
    Hi Vladimir, Joe,

    You can try logging the user through code instead:
    http://docs.sitefinity.com/for-developers-authenticate-users

    or just by user name:
    UserLoggingReason result = SecurityManager.AuthenticateUser(null, "username", false, out user);


    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  4. Vladimir
    Vladimir avatar
    13 posts
    Registered:
    30 Apr 2015
    20 May 2015 in reply to Svetoslav Manchev
    Link to this post

    Hi Svetoslav,

    Thanks a lot for the reply!

    This scenario does NOT work for me(I've tried earlier), just because Sitefinity tries to get  the user from my custom membership provider BY NAME. My custom membership provider(against API) does not support getting user by username(I should also provider an auth token supplied earlier). And I don't need the ​user ​OUT.

    Any other ideas how I could achieve that?

4 posts, 0 answered