Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Gustavo Arriola 3 posts 72 karma points
    May 05, 2017 @ 03:11
    Gustavo Arriola
    0

    Authentication from Windows Forms Application C#

    Hello Guys!

    I have a C # Windows Forms application that I want to be authenticated with a Umbraco backoffice user.

    I'm creating an UmbracoApiController for this, however, I can not succeed since ValidateUser always returns 'False'

            MembershipUser user;
            if (Membership.ValidateUser(username, password))
            {
                user = Membership.GetUser(username);                   
            }
    

    In this case, Membership comes from 'System.Web.Security;'

    I have also tried with no success (for the same reason as above, ie ValidateUser always returns 'False'.

    Umbraco.Web.Security.Providers.MembersMembershipProvider mp = new Umbraco.Web.Security.Providers.MembersMembershipProvider();
    

    The username and password parameters are in plain text and I'm using Umbraco 7.5.1

    How can I solve this?

    Best regards, Gustavo

  • Gustavo Arriola 3 posts 72 karma points
    May 08, 2017 @ 16:01
    Gustavo Arriola
    0

    Anyone have any idea what might be happening?

    Best regards, Gustavo

Please Sign in or register to post replies

Write your reply to:

Draft