tibemsConnectionFactory_SetOAuth2Params

Function

Purpose

Set the connection factory’s default OAuth 2.0 parameters.

C Declaration

tibems_status tibemsConnectionFactory_SetOAuth2Params(
    tibemsConnectionFactory factory,
    tibemsOAuth2Params oauth2params );

IBM Systems

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

Parameters

Parameter Description
factory Set the default OAuth 2.0 parameters of this connection factory.
oauth2params The connection uses these parameters to obtain OAuth 2.0 access tokens from the OAuth 2.0 authorization server.

Remarks

If OAuth 2.0 parameters are set in a connection factory via this function, all connections created using that factory will attempt to obtain OAuth 2.0 access tokens and include them in the connection requests to the EMS server.

Connections will obtain an access token directly from the configured OAuth 2.0 parameters if available. Otherwise they will use an OAuth 2.0 grant to obtain access tokens from an authorization server.

See Also

tibemsOAuth2Params and Environment Variables