Problem when calling the User Service to validate a user
Hello,
i'm tring to validate a user from a page calling the User Webservice but I got troubles....
here's what's happening :
protected void Page_Load(object sender, EventArgs e)
Telerik.Sitefinity.Security.Web.Services.Users users = new Telerik.Sitefinity.Security.Web.Services.Users();
Telerik.Sitefinity.Security.Credentials credentials = new Telerik.Sitefinity.Security.Credentials();
credentials.UserName = "admin";
credentials.Password = "1234567890";
credentials.MembershipProvider = "IFProvider";
// credentials.Persistent = true;
try
UserLoggingReason resaon = users.AuthenticateUser(credentials);
catch (Exception ex)
int i = 0; //Got exception pasted below
public IFProvider()
if (System.Web.HttpContext.Current.Session != null && System.Web.HttpContext.Current.Session["ListaUtenti"] != null)
ListaUtenti = System.Web.HttpContext.Current.Session["ListaUtenti"] as List<
User
>;
providerDecorator = new EmptyDecorator();
providerDecorator.Initialize("IFProvider", null, typeof(IFProvider));
Hello Paolo,
You should make a web request. You can use
var wRequest = new Sys.Net.WebRequest(); |
how can i authenticate the sitefinity service call using web-request ?
i am facing the issue kind of issue as above i.e. unable to validate users while web service call?
thanks in advance!
regards,
Neha
Hello Neha,
You could check the following blog posts:
- RESTful services in Sitefinity
- Claims Authentication and Designing
I hope the information is useful.
Regards,
Svetoslav Manchev
Telerik