Authentication Service
The Webcom service that makes it possible to authenticate users and manage identities (or authentication means) of users on a Webcom application.
Instances of AuthenticationService must be built using the WebcomApplication.authenticationService property.
The first step consists in choosing an AuthenticationMethod using one of the available getXXXMethod
methods. Each subclass of AuthenticationMethod provides at least an authenticate
method, and possibly additional methods to prepare the authentication call-flow (e.g. sending a One-Time Password to the user) or manage user identities (e.g. adding and validating a new email address).
Only one user may be authenticated at a time. If two authentication call-flows are run simultaneously, one of them will be rejected.
When a user is authenticated, it overwrites the already authenticated user if any.
In order to perform a multi-factor authentication, a user must already be authenticated and Context.Current must be passed to the authenticate
method of the AuthenticationMethod associated with the additional factor. The resulting authentication factors may then be retrieved using the AuthenticationDetails.previousFactors property.
Types
Functions
Properties
null
if no user is currently authenticated.