REST.Backend.EMSServices.TEMSLoginAPI.FindCurrentUser

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FindCurrentUser(const AObject: TBackendEntityValue;  AProc: TFindObjectProc): Boolean; overload;
function FindCurrentUser(const AObject: TBackendEntityValue;  out AUser: TBackendEntityValue; const AJSON: TJSONArray)

C++

bool __fastcall FindCurrentUser(const Rest::Backend::Metatypes::TBackendEntityValue &AObject, Rest::Backend::Servicetypes::_di_TFindObjectProc AProc)/* overload */;
bool __fastcall FindCurrentUser(const Rest::Backend::Metatypes::TBackendEntityValue &AObject, /* out */ Rest::Backend::Metatypes::TBackendEntityValue &AUser, System::Json::TJSONArray* const AJSON)/* overload */;

Properties

Type Visibility Source Unit Parent
function protected
REST.Backend.EMSServices.pas
REST.Backend.EMSServices.hpp
REST.Backend.EMSServices TEMSLoginAPI

Description

Requests the information of the user of the specified authentication data object from the EMS server and returns True if it receives the information successfully or False otherwise.

To obtain an authentication data object that identifies the current user (AObject), use a function such as LoginUser or SignupUser.

To handle the received information, you must provide either of the following:

Exceptions

Exception Message Description

EEMSClientAPIError

MasterSecret required

The type of authentication is TAuthentication.MasterSecret and the MasterSecret property of the connection information of the underlying EMS backend service is an empty string.

Session token required

The type of authentication is TAuthentication.Session you did not log in.

See Also