Form based authentication to a different Kentico site/install

Pablo Alejo asked on September 14, 2015 19:13

Hello,

I am trying to create a a login and password reset page on one kentico site but it needs to authenticate against a seperately installed kentico site. What would be the best way to go about this? Is there a service that I can use that's built into Kentico or will I need to write my own service of some sort on both ends to send and receive a response?

Thank you,

Correct Answer

Radek Macalik answered on September 17, 2015 12:35

Hello.

For this purpose, you could use custom external authentication as described in this article.

Hope it helps!

Best Regards, Radek Macalik

0 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on September 14, 2015 23:39

You might be able to get away with using some REST services. Another option is to use the API and create a connection to that other database during your authentication process. Another option could be to create a web service on the site you want to authenticate against and expose it publically, then on your other site, call that function which will privately call the API to authenticate the user with the passed in username and password.

0 votesVote for this answer Mark as a Correct answer

Pablo Alejo answered on September 29, 2015 01:08

Hi Radek,

I have implemented the custom external authentication handler and the handler works and shows the user as authenticated but then when I redirect to the home page, I still get an "Access Denied" error. Any suggestions as to maybe a setting I'm missing?

Thank you, Alex

0 votesVote for this answer Mark as a Correct answer

Pablo Alejo answered on September 29, 2015 16:23

Ok, I figured it out. The authentication module works, I was just missing roles on the page that had the security set on it and all the other pages were inheriting from.

1 votesVote for this answer Mark as a Correct answer

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