hook_civicrm_oauthReturnError¶
Summary¶
If an OAuth2 grant (in the "authorization code" flow) produces an error, then this hook provides details.
Availability¶
Hook added in CiviCRM 5.32+ as part of a core-extension (oauth-client
).
Definition¶
hook_civicrm_oauthReturnError($error, $description, $uri, $state)
Parameters¶
$error
: Theerror
code per RFC 6749$description
: Theerror_description
per RFC 6749$uri
: Theerror_uri
per RFC 6749$state
: Any contextual state recorded when we started the OAuth request
Returns¶
null