Syntax
CustomerSession
loginAuthenticatedCustomer
(
String
identifier
,
int
identifierType
,
String
origin
,
long
callerId
,
String
orgUnit
,
boolean
allPrivilegesRequired
,
List< String >
requiredPrivileges
) throws EntityNotFoundException, CustomerStatusException, SessionException, InternalCustomerException, MissingLoginPrivilegeException
Parameters
-
identifier –
the identification to load the customer by (MSISDN, username, ...).
-
identifierType –
the type of the identification provided in identification.
-
origin –
the origin is stored with the session that is created. Specifies where the login operation is initiating from.
-
callerId –
represents the ID of the caller of the operation. Used for tracking/audit purposes.
-
orgUnit –
the customers orgunit
-
allPrivilegesRequired –
this flag indicates if the customer must have all of the required privileges, or if one is sufficient
-
requiredPrivileges –
this is the list of privileges the customer must have to log in successfully; if the customer does not have these privileges, the login will fail and the customer status, wrong-credential-counter, etc. will not be changed (irrespective of whether or not the customer provided the right password), if this list is empty or null, no privilege checking will happen.
Returns
the created CustomerSession
Exceptions
-
EntityNotFoundException –
-
CustomerStatusException –
-
SessionException –
-
InternalCustomerException –
-
MissingLoginPrivilegeException –
Usage
Logs in an already authenticated end-user into an application and creating a new session. The session id that is returned should be used for each subsequent request and is valid either until it times out or a logout is called.
the created CustomerSession