REST.Backend.EMSServices.TEMSLoginAPI.LoginUser

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

procedure LoginUser(const AUserName, APassword: string;  AProc: TFindObjectProc); overload;
procedure LoginUser(const AUserName, APassword: string;  out AUser: TBackendEntityValue; const AJSON: TJSONArray); overload;

C++

void __fastcall LoginUser(const System::UnicodeString AUserName, const System::UnicodeString APassword, Rest::Backend::Servicetypes::_di_TFindObjectProc AProc)/* overload */;
void __fastcall LoginUser(const System::UnicodeString AUserName, const System::UnicodeString APassword, /* out */ Rest::Backend::Metatypes::TBackendEntityValue &AUser, System::Json::TJSONArray* const AJSON)/* overload */;

プロパティ

種類 可視性 ソース ユニット
procedure
function
protected
REST.Backend.EMSServices.pas
REST.Backend.EMSServices.hpp
REST.Backend.EMSServices TEMSLoginAPI


説明

EMS サーバーにログインし、今後の要求で使用できる認証データを取得します。

ログインするユーザーのユーザー名(AUserName)とそのユーザーのパスワード(APassword)を指定する必要があります。

受け取った情報を処理するために、次のいずれかを引数として渡す必要があります。

例外

例外 メッセージ 説明

EEMSClientAPIError

MasterSecret が必要です

認証の種類TAuthentication.MasterSecret で、基になる EMS バックエンド サービス接続情報MasterSecret プロパティが空の文字列になっています。

セッション トークンが必要です

EMS サーバーからの応答にセッション トークンが含まれていません。

EMS サーバーからの応答は、TJSONNames.SessionToken の値をキーとするキー/値ペアが格納されたログイン データの JSON オブジェクトでなければなりません。

セッション トークンが必要です

認証の種類TAuthentication.Session で、かつ、ログインが行われませんでした。

関連項目