Last post Feb 12, 2019 04:43 PM by bruce (sqlwork.com)
Feb 12, 2019 08:03 AM|leonardo.bassi18|LINK
I want to authenticate users using active directory, after hours and hours spent surfing on the internet i didn't find anything useful for me.
If anyone can help me with pieces of code or example i'll appreciate it a lot, because i have no idea where i can start from.
Feb 12, 2019 10:41 AM|ignatandrei|LINK
Please read - https://docs.microsoft.com/en-us/aspnet/core/security/authentication/windowsauth?view=aspnetcore-2.2&tabs=visual-studio
It is , mostly, a devops thingy.
Feb 12, 2019 01:05 PM|leonardo.bassi18|LINK
Thanks, but it isn't what i am looking for, i need a classic login page and check the username and pass which are stored in my AD server
Feb 12, 2019 01:29 PM|PatriceSc|LINK
Then you could use
https://docs.microsoft.com/en-us/dotnet/api/system.directoryservices.accountmanagement.principalcontext.validatecredentials?view=netframework-4.7.2 to validate the password against AD which I assume is the main blocking point ?
You could also have a look at
https://docs.microsoft.com/en-us/aspnet/identity/overview/extensibility/overview-of-custom-storage-providers-for-aspnet-identity (maybe oveerkil)
Feb 12, 2019 03:02 PM|leonardo.bassi18|LINK
Sorry if my english is bad, however i need a sort of form which the user have to insert his username and pass, after the validation of the credentials the user can navigate only in some sections, such as view details of something but not edit, ex:
sample user, while admin can do everything. A sort of backend which allows to indicate which domain users can access with specific privileges
Feb 12, 2019 04:43 PM|bruce (sqlwork.com)|LINK
see this thread: