IAuthenticationProvider Interface |
Namespace: NetQuarry.Security
The IAuthenticationProvider type exposes the following members.
Name | Description | |
---|---|---|
Application |
Gets/Sets an IAppContext object for use by the provider.
| |
Properties |
Get the object's Properties collection.
|
Name | Description | |
---|---|---|
Authenticate(String, Int64) |
The implementing class should authenticate the user using the provided token,
create and populate a UserContext object adding appropriate UserProfiles items to its Profiles
collection.
If the authentication fails, the implementing class can return a null UserContext object or throw a custom exception.
| |
Authenticate(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.
| |
ChangePassword |
Changes the password for the user.
Use ChangeUserPassword(IAppContext, String, String, String) if you need the new password in a form (raw vs. encrypted)
for storing in Password.
| |
ChangeUserPassword |
Changes the password for the user.
Performs the same functionality as ChangePassword(IAppContext, String, String, String) except that it returns
the new password (raw for two-way encryptions, encrypted for one-way encryptions) as
is appropriate for storing in Password.
| |
ResetPassword |
Sets the password to null, sets the ForcePasswordChange attribute on the user
and (optionally) sends the user a way to reset it via email.
| |
Restore |
Restore the user context from a user id. Used when a password is lost and you want to
send the user a new password.
|