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
string userName

The user name.

string oldPassword

The old user password

string newPassword

The new user password.

Returns
Type Description
IPrincipal

The IPrincipal.

Exceptions
Type Condition
AuthenticationException

An exception that is thrown when the user authentication fails

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
string userName

The user name.

string password

The user password.

Returns
Type Description
IPrincipal

A implementation of IPrincipal.

Exceptions
Type Condition
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