Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > FormsAuthentication View modes: 
User avatar
Member
Member
francis.harvey-irisco - 9/15/2010 12:37:42 PM
   
FormsAuthentication
I add the asp LoginForm usercontrol to a web part and use it for login in kentico

It work only for one user!!!

The Page.User.Identity is a System.Web.Security.FormsIdentity for the working user
and a System.Security.Principal.GenericIdentity for non working user

My authenticate function return always true and i set the event.authenticated = true of the login form

I think the problem is with the type but i cant figure out how resolve it

Thanks

User avatar
Member
Member
francis.harvey-irisco - 9/20/2010 2:32:40 PM
   
RE:FormsAuthentication
the FormsIdentity mecanism seem to use Kentico Users even if i return true to custom Authenticate method

When i add my user to the kentico User database it works...

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 9/21/2010 7:34:36 AM
   
RE:FormsAuthentication
Hello,


I am not sure why you use ASP.NET login instead of Kentico Login, however, could you please try to authenticate users by our API? Please see here for a sample code: Authenticating user

You could also consider the custom security handler: Custom security handler


Best regards,
Helena Grulichova

User avatar
Member
Member
francis.harvey-irisco - 9/21/2010 7:55:38 AM
   
RE:FormsAuthentication
i dont know, it is only to eliminate risk of user with permission on the client website, a user who can change content instead of using services provided by the website...

Im not very familiar with user and permission in kentico, for now i have all permission, so i dont know who can do what with specified permission

Probably in the next project i'll use your sample instead of my tricky code with FormsIdentity...

Thanks

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 9/24/2010 7:39:18 AM
   
RE:FormsAuthentication
Hello,


If you are not sure with Kentico security system please read this chapter in our Developer's Guide: Security model


Best regards,
Helena Grulichova