I'm trying to use the webservice api to pull information about our umbraco instance.
I am using Umbraco v4.0.2.1.
Specifically, I am trying to call /umbraco/webservices/api/documentService.asmx?op=readList
For parentid I am specifying -1,
for username and password I am specifying the same username and password that I use to log into the umbraco admin.
I keep receiving the following error:
[code]System.Exception: The user does not authenticate
at umbraco.webservices.BaseWebService.Authenticate(String username, String password)
at umbraco.webservices.documents.documentService.readList(Int32 parentid, String username, String password)[/code]
My umbracoSettings.config section relevant looks like:
[code]
[/code]
I have tried changing the "admin" above to "Administrator" - this didn't help. I also tried creating a new user "ws", and setting it up as a copy of admin, then using that instead of admin in the above config - that also didn't help...
I have searched google and the forums several times trying to find what I am doing wrong, but I cannot see anything relevant that resolves the issue. Has anyone else used these api webservices? How did they get them working?
I'm just going through the code (the v402 beta - but nothing has changed re webservices) and found out that supplied username and password are not correctly translated/encoded when authenticating. I mean, it'll probably work if you don't use hashed passwords (which has become default in v401).
For the sake of testing, just create a new user, make sure to set passwordFormat to 'Clear' in web.config and see if that works.
- It doesn't matter how passwordFormat is set, it won't use this info when authenticating for webservices.
- Change password for the user you're using to authenticate (directly in db), and use that password for webservice authentication.
I'll check on Codeplex on file a new work item if not yet existing.
Trouble Using WebService API
I'm trying to use the webservice api to pull information about our umbraco instance.
I am using Umbraco v4.0.2.1.
Specifically, I am trying to call /umbraco/webservices/api/documentService.asmx?op=readList
For parentid I am specifying -1,
for username and password I am specifying the same username and password that I use to log into the umbraco admin.
I keep receiving the following error:
[code]System.Exception: The user does not authenticate
at umbraco.webservices.BaseWebService.Authenticate(String username, String password)
at umbraco.webservices.documents.documentService.readList(Int32 parentid, String username, String password)[/code]
My umbracoSettings.config section relevant looks like:
[code]
[/code]
I have tried changing the "admin" above to "Administrator" - this didn't help. I also tried creating a new user "ws", and setting it up as a copy of admin, then using that instead of admin in the above config - that also didn't help...
I have searched google and the forums several times trying to find what I am doing wrong, but I cannot see anything relevant that resolves the issue. Has anyone else used these api webservices? How did they get them working?
Thanks,
Scott
Hi scott,
I'm just going through the code (the v402 beta - but nothing has changed re webservices) and found out that supplied username and password are not correctly translated/encoded when authenticating. I mean, it'll probably work if you don't use hashed passwords (which has become default in v401).
For the sake of testing, just create a new user, make sure to set passwordFormat to 'Clear' in web.config and see if that works.
Hope this helps.
Regards,
/Dirk
Thanks Dirk... good to know it's not just me. Should I submit a ticket for this on CodePlex?
Hi,
Quick update:
- It doesn't matter how passwordFormat is set, it won't use this info when authenticating for webservices.
- Change password for the user you're using to authenticate (directly in db), and use that password for webservice authentication.
I'll check on Codeplex on file a new work item if not yet existing.
Cheers,
/Dirk
Another quick update:
Codeplex work item created: http://umbraco.codeplex.com/WorkItem/View.aspx?WorkItemId=22918
Please vote to get it resolved asap.
Cheers,
/Dirk
is working on a reply...