tibemsAdmin_CreateWithOAuth2TokenFetchCallback

Function

Purpose

Create an administration connection to an EMS server that is configured for OAuth 2.0 authentication. Obtain OAuth 2.0 access tokens by invoking a user-defined callback.

C Declaration

tibems_status tibemsAdmin_CreateWithOAuth2TokenFetchCallback(
    tibemsAdmin* admin,
    const char* url,
    tibemsSSLParams sslParams,
    tibemsOAuth2TokenFetchCallback oauth2TokenFetchCallback );

IBM Systems

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

Parameters

Parameter Description
admin Store the new administrative connection in this location.
url Find the EMS server at this URL.
sslParams Establish TLS communication using these parameters.

See TLS Server Parameters in the TIBCO Enterprise Message Service User Guide for more information.

oauth2TokenFetchCallback

Use this callback function to obtain OAuth 2.0 access tokens.

Remarks

Either this function or tibemsAdmin_CreateWithOAuth2Params can be used to create an administration connection to an EMS server configured with OAuth 2.0 authentication.

When an administration connection is created via this function, it obtains the OAuth 2.0 access tokens required to authenticate with the EMS server by invoking the callback provided via the oauth2TokenFetchCallback parameter.

Note:  If an access token has been configured using the
TIBEMS_OAUTH2_ACCESS_TOKEN environment variable, the callback provided via the oauth2TokenFetchCallback parameter will be ignored. All administration connections created by the client application will use the access token for authentication. See TIBEMS_OAUTH2_ACCESS_TOKEN for details.

See Also

tibemsOAuth2TokenFetchCallback

tibemsAdmin_CreateWithOAuth2Params