Kentico with Azure AD

Mananu Gunawardana asked on September 27, 2018 07:44

Hi,

Is there anyone who has configures Azure AD login with Kentico? We are using the MVC development approach with the CMS hosted as a separate web app. We want to allow users to login using there Office 365 accounts. Appreciate any suggestions.

Correct Answer

Peter Mogilnitski answered on September 27, 2018 17:53

We do have our Kentico web app working with Azure AD. You do need to create a custom module for that. You have to attach to a couple global events SecurityEvents.AuthenticationRequested.Execute (where you need to do redirect) and RequestEvents.Begin.Execute(where you need to AcquireTokenByAuthorizationCode and AuthenticationHelper.AuthenticateUser). Google how it is done with asp.net and try to plug code examples into your custom Kentico module. You have to understand the mechanics of this process. It is not supported out of the box, but it is certainly possible.

0 votesVote for this answer Unmark Correct answer

Recent Answers


David te Kloese answered on September 27, 2018 09:54

Have you checked the documentation: docs.kentico.com/.../configuring-windows-ad-authentication

any issues after following that guide?

0 votesVote for this answer Mark as a Correct answer

Mananu Gunawardana answered on September 27, 2018 10:12

Hi,

thanks for your answer, but Windows AD cannot be used as Azure AD. Note that the CMS is hosted in the cloud as a Webapp.

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on September 27, 2018 14:15

My bad, don't believe Azure AD is supported...

haven't heard anything about it for a while. Suggest to drop a mail at support@kentico.com, and a share of the response here would be appreciated!

1 votesVote for this answer Mark as a Correct answer

Gareth Goodman answered on July 11, 2019 06:29

@Peter could you possibly post some code and an explanation of your module ?

0 votesVote for this answer Mark as a Correct answer

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