tibemsOAuth2Params_SetAccessToken

Function

Purpose

Set an access token in the OAuth 2.0 parameter object. This access token will be used for all authentication attempts with the EMS server.

C Declaration

tibems_status tibemsOAuth2Params_SetAccessToken(
    tibemsOAuth2Params params,
    const char* accessToken );

IBM Systems

This function is not supported on z/OS and IBM i systems.

Parameters

Parameter Description
params Set the value in this OAuth 2.0 parameter object.
accessToken The OAuth 2.0 access token to use for all authentication attempts with the EMS server.

Remarks

If an access token is set in the OAuth 2.0 parameter object using this function, connections associated with the OAuth 2.0 parameter object will always use the configured access token for authentication with the EMS server. They will not attempt to obtain access tokens using OAuth 2.0 grants or user-defined callbacks.

See Also

TIBEMS_OAUTH2_ACCESS_TOKEN