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.

August 14, 2025 2.1.0