function RequestToken: boolean;

 

Description

Sends a request to the REST service endpoint using the UserName and Password in the request header. RequestToken parses the JSON response and stores the token and related data in the TScRestBearerAuthenticator object properties.

Returns True on success, False on failure.

If a TScRestRequest component is provided via the constructor, it will be used. Otherwise, a new TScRestRequest component will be created, and the TScRestBearerAuthenticator object will manage its lifetime independently.

SecureBridge Components, Copyright © 2007-2025 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support