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

Forums / Bugs & Issues / AuthenticateUser returns Unknown

AuthenticateUser returns Unknown

3 posts, 0 answered
  1. Matt
    Matt avatar
    2 posts
    Registered:
    20 Dec 2012
    20 Dec 2012
    Link to this post
    Hi,

    I am trying to authenticate the user from a web service request and then change its password. I can get the User but when I call AuthenticateUser with the correct password, it returns UserLoggingReason.Unknown. 

    UserManager userManager = UserManager.GetManager();
    User user = userManager.GetUser(userName);
    UserLoggingReason reason = SecurityManager.AuthenticateUser(UserManager.GetDefaultProviderName(), userName, password, false, out user);

    To the best of my knowledge, the membership provider and forms authentication are set correctly and I am pointing to the correct database. Any insight would be appreciated.

    Thanks,

    Matt
  2. Atanas Valchev
    Atanas Valchev avatar
    414 posts
    Registered:
    04 Jan 2016
    25 Dec 2012
    Link to this post
    Hi Matt,

    Would it be possible to try switching to claims authentication and try again to test if you get the same result, please. 

    Greetings,
    Atanas Valchev
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. Matt
    Matt avatar
    2 posts
    Registered:
    20 Dec 2012
    27 Dec 2012 in reply to Atanas Valchev
    Link to this post
    Atanas, thanks for responding. I just found out that this code works in another environment, so maybe there's a configuration problem. It looks like our other environment is set to forms authentication. I'll compare the two and see what I can find.
3 posts, 0 answered