REST.Backend.ServiceComponents.TCustomBackendAuth.ExportLogin

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ExportLogin(const APassword: string): string;

C++

System::UnicodeString __fastcall ExportLogin(const System::UnicodeString APassword);

Properties

Type Visibility Source Unit Parent
function public
REST.Backend.ServiceComponents.pas
REST.Backend.ServiceComponents.hpp
REST.Backend.ServiceComponents TCustomBackendAuth

Description

Exports authentication details (e.g., token and related details) after the user logs in.

When APassword is specified, then the string gets encrypted. To perform this operation, the TCustomBackendAuth must be logged in.

Later, ImportLogin must be used to import and decrypt the string.

Note: The encryption algorithm is weak and more applicable for obfuscation of authentication details (e.g., token, token's expiration time, etc.).

See Also