XUserGetTokenAndSignatureAsync
API that asynchronously retrieves the X-token and Signature required to authorize an HTTPS call to the target URL. Returns an X-token and Signature if there’s a Relying Party tied to the target URL in the title’s Single Sign-on page in Partner Center. Add the X-token and Signature values from the Results version of the API to the Authorization and Signature headers of the HTTPS call before making the request.Syntax
Parameters
user _In_Type: XUserHandle A handle to the user that the web request is for. options _In_
Type: XUserGetTokenAndSignatureOptions Options for retrieving the user token and signature. method _In_z_
Type: char* The method type for the web request. url _In_z_
Type: char* The target URL of your HTTPS request. Use the full URL string for the HTTPS request. Don’t abbreviate the URL. headerCount _In_
Type: size_t The number of headers in the headers parameter. headers _In_reads_opt_(headerCount)
Type: XUserGetTokenAndSignatureHttpHeader* Headers for the web request. bodySize _In_
Type: size_t The size of the buffer in the bodyBuffer parameter. bodyBuffer _In_reads_bytes_opt_(bodySize)
Type: void* A buffer that contains the body of the web request. async _Inout_
Type: XAsyncBlock* An XAsyncBlock for polling the call’s status and retrieving call results.
