Click or drag to resize

IAuthenticationProviderAuthenticate Method (String, String, NameValueCollection, Int64)

The implementing class should authenticate the user, create and populate a UserContext object adding UserProfiles items to its Profiles collection when an item in the profileRoles collection is supported for this user. If the authentication fails, the implementing class can return a null UserContext object or throw a custom exception. Note that you can use BuildProfileRolesCollection(IAppContext) to get the full set of available roles for the current application.

Namespace:  NetQuarry.Security
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
UserContext Authenticate(
	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.
See Also