civimrf / cmrf_abstract_core
Abstract implementation for the the CMRF Core. Should be included into the concrete module implementation
Installs: 4 238
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 7
Forks: 3
Open Issues: 4
Requires
- php: ^7.4 || ^8
- ext-json: *
Requires (Dev)
- phpunit/phpunit: ^8 || ^9
Suggests
- ext-curl: For cURL connection
README
You can find the general documentation at https://github.com/CiviMRF/documentation.
The CurlAuthX connector
In the latest versions of CiviCRM, the endpoint https://my-civi.org/sites/all/modules/civicrm/extern/rest.php
is not supported anymore. It is replaced by a new extension AuthX
that provides a lot of different authentication options. The CurlAuthX connector uses just one of them.
The AuthX does not have a graphical interface (yet). You can configure it with the cv
utility.
- enable the new authx extension
cv ext:enable authx
- choose the authentication method
cv ev 'Civi::settings()->set("authx_xheader_cred",["api_key"]);'
- make sitekey mandatory
cv ev 'Civi::settings()->set("authx_guards",["site_key"]);'
- refresh the cache
cv flush