REST.Backend.EMSApi.TEMSClientAPI.AddAuthParameters
Delphi
procedure AddAuthParameters(const ARequest: TCustomRESTRequest); overload;
C++
void __fastcall AddAuthParameters(Rest::Client::TCustomRESTRequest* const ARequest)/* overload */;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | REST.Backend.EMSApi.pas REST.Backend.EMSApi.hpp |
REST.Backend.EMSApi | TEMSClientAPI |
Description
Adds the configured authentication data to the headers of the specified request.
AddAuthParameters calls DoAddAuthParameters.
Exceptions
| Exception | Message | Description |
|---|---|---|
|
MasterSecret required |
Authentication is TAuthentication.MasterSecret and ConnectionInfo.MasterSecret is an empty string. | |
|
Session token required |
Authentication is TAuthentication.Session and you did not log in or the session authentication token that you provided to Login is an empty string. |