Show / Hide Table of Contents

Interface IAuthenticationProvider

Defines a set of methods to be implemented for security.

Namespace: Sartorius.SAF.Security
Assembly: Sartorius.SAF.dll
Syntax
public interface IAuthenticationProvider

Methods

View Source

ChangePassword(String, String, String)

Changes a user password.

Declaration
IPrincipal ChangePassword(string userName, string oldPassword, string newPassword)
Parameters
Type Name Description
System.String userName

The user name.

System.String oldPassword

The old user password

System.String newPassword

The new user password.

Returns
Type Description
System.Security.Principal.IPrincipal

The System.Security.Principal.IPrincipal.

Exceptions
Type Condition
System.Security.Authentication.AuthenticationException

An exception that is thrown when the user authentication fails

System.DirectoryServices.AccountManagement.PasswordException

An exception that is thrown when a password does not meet complexity requirements.

View Source

Login(String, String)

Check authentication of the given user.

Declaration
IPrincipal Login(string userName, string password)
Parameters
Type Name Description
System.String userName

The user name.

System.String password

The user password.

Returns
Type Description
System.Security.Principal.IPrincipal

A implementation of System.Security.Principal.IPrincipal.

Exceptions
Type Condition
System.Security.Authentication.AuthenticationException

An exception that is thrown when authentication fails.

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX