Public user, how to access the customer site in without login window for particular users, not all u

Ramakrishnan G asked on October 21, 2019 17:07

In kentico 10 customer site already used login window, if enter username and password, if credential is success they able to access the customer site. else the credential is not valid not able to access the site.

My requirement is how to access the site in without login window for particular users, not all users.

Recent Answers


web dev answered on October 21, 2019 18:06

here you will find how manage account of users https://docs.kentico.com/k10/managing-users/user-management

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on October 22, 2019 13:29

If site requires authentication you have to login anyway... If you need to omit login window you have to think about any other way to pass user credentials and let system know who is the user, e.g. pass some user identifier/token in URL on request header, so system will recognize and authenticate user. Anyway you'll have to implement it as there is nothing out of the box that could address your need.

0 votesVote for this answer Mark as a Correct answer

Ramakrishnan G answered on October 22, 2019 14:58

I used below code, again page will redirectiong to login window. How to avoid the login window for particular user not all users?

TreeProvider tree = new TreeProvider(MembershipContext.AuthenticatedUser);

var page = tree.SelectNodes().Path("/").OnCurrentSite().Culture("en-us").FirstObject;

if (page != null) { // Gets the user

UserInfo user = UserInfoProvider.GetUserInfo("username");

if (user != null)

{

if (user.IsAuthorizedPerTreeNode(page, NodePermissionsEnum.Read) == AuthorizationResultEnum.Allowed)

{

Response.Redirect("/getdoc/e47be7b9-3cbf-4fbf-999f-6b67bb20044a/Home.aspx"); * } } }

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.