Copied to clipboard

Flag this post as spam?

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


  • andy_rose 91 posts 117 karma points
    Jul 30, 2009 @ 12:09
    andy_rose
    0

    Using the membership web service

    I am trying to get the umbraco membership web service working but seem to be having a few issues. I have set up the web services section in the umbracosettings.config file as follows:

      <webservices enabled="True">
        <!-- You must set user-rights for each service. Enter the usernames seperated with comma (,) -->
        <documentServiceUsers>admin,Andy</documentServiceUsers>
        <fileServiceUsers>admin,Andy</fileServiceUsers>
        <stylesheetServiceUsers>admin,Andy</stylesheetServiceUsers>
        <memberServiceUsers>admin,Andy</memberServiceUsers>
        <templateServiceUsers>admin,Andy</templateServiceUsers>
        <!-- type of files (extensions) that are allowed for the file service -->
        <fileServiceFolders>css,xslt</fileServiceFolders>
      </webservices>

    When I browse to the web service .asmx file and attempt to invoke a method such as Read List I am getting:

    System.Exception: The user does not authenticate

    I am passing a valid username and password in the parameters of the method call.

    Any suggestions as to what I may be doing wrong?

  • Petr Snobelt 923 posts 1535 karma points
    Jul 30, 2009 @ 12:36
    Petr Snobelt
    0

    I do something similar in v3 and it works.
    You can try look into this wiki article and try samples from presentations.

  • andy_rose 91 posts 117 karma points
    Jul 30, 2009 @ 13:20
    andy_rose
    0

    It appears there is currently an issue with web services in the latest version. See this thread on the old forum:

    Trouble using WebService API

    The current work around is to get the hashed password for the User you are authenticating as directly from the User table in the database and pass this in as the password parameter. I have tried this and it works.

    There is a codeplex work item set up for this issue so I would encourage any one else experiencing this problem to vote it up.

Please Sign in or register to post replies

Write your reply to:

Draft