Microsoft cloud engineer - SharePoint, Office 365, Azure, DotNet, Angular, JavaScript.
Microsoft cloud engineer - SharePoint, Office 365, Azure, DotNet, Angular, JavaScript.

VerifyAD – Validate Active Directory username and password with REST api

Below is a example of how to wrap System.DirectoryServices.AccountManagement.PrincipalContext.ValidateCredentials() with REST api container for electronic signature over REST api call.   This enables web based forms to be “signed” for business purpose with given user’s password.   The api will return “true” if given a valid Domain, User, and Password.   However, should any invalid input be given or an exception occur it merely responds “false.”

NOTE – This API should ONLY be used over HTTPS for secure encrypted transport.  Demo video shows HTTP for educational purposes only.

Cheers!  

shades_smile

Video

Code

References

© Copyright 2016
@ SPJeff

Return to Top ▲Return to Top ▲