Scroll to navigation

MONGOC_OIDC_CALLBACK_FN_T(3) libmongoc MONGOC_OIDC_CALLBACK_FN_T(3)

SYNOPSIS

typedef mongoc_oidc_credential_t *(*mongoc_oidc_callback_fn_t) (mongoc_oidc_callback_params_t *params);


The type of the function pointer stored by mongoc_oidc_callback_t <>.

PARAMETERS

params: A mongoc_oidc_callback_params_t <> object representing in/out parameters of a mongoc_oidc_callback_t <>.

RETURNS

A mongoc_oidc_credential_t <> object created with mongoc_oidc_credential_new() <>, or NULL to indicate an error or timeout.

  • The function MUST return a mongoc_oidc_credential_t <> object to indicate success.
  • The function MUST return NULL to indicate an error.
  • The function MUST call mongoc_oidc_callback_params_cancel_with_timeout() <> before returning NULL to indicate a timeout instead of an error.

The cancel_with_timeout out parameter is ignored if the return value is not NULL.

See also:

  • mongoc_oidc_callback_t <>
  • mongoc_oidc_callback_params_t <>
  • mongoc_oidc_credential_t <>



Author

MongoDB, Inc

Copyright

2009-present, MongoDB, Inc.

December 11, 2025 2.2.1