Click or drag to resize

DatabaseAuthenticationProviderOnAuthenticate Method

Authenticates the user, creates and populates a UserContext object adding profiles when an item in the profileRoles collection is supported for this user. This implementation uses NTLM authentication (without a domain specified), then creates a WindowsIdentity object and a WindowsPrincipal object and uses the WindowsPrincipal.IsInRole method to validate if the user is in the specified role.

Namespace:  NetQuarry.Security
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
protected override UserContext OnAuthenticate(
	string user,
	string password,
	NameValueCollection profileRoles,
	long flags
)

Parameters

user
Type: SystemString
The user's ID
password
Type: SystemString
The user's password
profileRoles
Type: System.Collections.SpecializedNameValueCollection
The available profile/role mappings
flags
Type: SystemInt64
Modifier flags (from AuthenticationFlags).

Return Value

Type: UserContext
A populated UserContext object or null if the validation fails
See Also