AuthenticationService v0.3.0+7-g8a7f190
Public Member Functions | List of all members
Joutsen.Authentication.Authenticator Interface Reference

An interface that can be used to authenticate a user by its name and password. More...

Public Member Functions

AuthenticatedUser GetAuthenticatedUser (String username, String password)
 Fetches the user that can be authenticated by the username and password. More...
 

Detailed Description

An interface that can be used to authenticate a user by its name and password.

Since
0.1.0

Member Function Documentation

◆ GetAuthenticatedUser()

AuthenticatedUser Joutsen.Authentication.Authenticator.GetAuthenticatedUser ( String  username,
String  password 
)

Fetches the user that can be authenticated by the username and password.

Returns
the active user that is identified by its name and password, otherwise null.
Remarks
In order for a user to be authenticated three conditions mus be met: a user with the username mus exist, the password must match the password used to authenticate the user and the user must be active.

Implemented in Joutsen.Authentication.Persistence.NHibernate.NHibernateUserRepository.