tibemsOAuth2Params_SetExpectedHostname
Function
Purpose
Set the host name expected to be set in the secure OAuth 2.0 authorization server host’s certificate.
C Declaration
tibems_status tibemsOAuth2Params_SetExpectedHostname( tibemsOAuth2Params params, const char* hostname );
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. |
hostname |
The expected host name of the OAuth 2.0 authorization server. |
Remarks
The expected host name set via this function is used to validate the actual host name found in the secure OAuth 2.0 authorization server host’s certificate. If not set, the expected host name defaults to the name of the authorization server’s host. This verification is only performed if host name verification has not been explicitly disabled via tibemsOAuth2Params_SetDisableVerifyHostname
.
This function is not relevant if using an OAuth 2.0 authorization server with an HTTP URL.