ActiveDirectoryService.Authenticate Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Authenticate(string, string, string)

Connects to the server and returns a value that specifies if the credentials are valid.

public static ClaimsIdentity Authenticate(string domain, string username, string password)

Parameters

domain
string

The name of the domain or server to use for authentication.

username
string

The username that is validated on the server.

password
string

The password that is validated on the server.

Returns

System.Security.Claims.ClaimsIdentity

A System.Security.Claims.ClaimsIdentity if the credentials are valid; otherwise false.