How to Authentication user without creating user in Kentico database I have some web API where I val

Ali Khan asked on January 12, 2023 13:14

I want to Authentication user based on my api without creating the user in kentico database.

I have created my web api where I can check is user validate if yes then I want to Authentication in kentico as well.

Recent Answers


Brenden Kehren answered on January 12, 2023 13:55

You can do this, however if you plan to have restricted content on your site you'll need to "fool" Kentico into thinking there is a user and that user is logged in. Otherwise you'll have to create the whole authorization process on your own.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on January 13, 2023 11:17

If you want to have the user log into the admin app, then the user object MUST be created in the Kentico DB - otherwise the security and permissions model will not work. The only way around this would be implementing a fully custom authentication and role/permissions providers. If you want to authenticate the user on the live site, you can use some third party or custom authentication provider and there is no need to create the user in Kentico DB if you do not need to assign any access permissions.

0 votesVote for this answer Mark as a Correct answer

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