$permissions['generate any authx credential'] = E::ts('Authx: Generate new JWT credentials for other users via the API');
$permissions['validate any authx credential'] = E::ts('Authx: Validate credentials for other users via the API');
}
-
-/**
- * Implements hook_civicrm_navigationMenu().
- *
- * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_navigationMenu
- */
-function authx_civicrm_navigationMenu(&$menu) {
- _authx_civix_insert_navigation_menu($menu, 'Administer/System Settings', [
- 'label' => E::ts('Authentication'),
- 'name' => 'authx_admin',
- 'url' => 'civicrm/admin/setting/authx',
- 'permission' => 'administer CiviCRM',
- 'operator' => 'OR',
- 'separator' => 0,
- ]);
- _authx_civix_navigationMenu($menu);
-}
<extension key="authx" type="module">
<file>authx</file>
<name>AuthX</name>
- <description>Extended authentication services</description>
+ <description>Extended authentication for external systems</description>
<license>AGPL-3.0</license>
<maintainer>
<author>Tim Otten</author>
<mixin>menu-xml@1.0.0</mixin>
<mixin>scan-classes@1.0.0</mixin>
<mixin>setting-php@1.0.0</mixin>
+ <mixin>setting-admin@1.0.0</mixin>
</mixins>
<civix>
<namespace>CRM/Authx</namespace>
<format>23.02.1</format>
+ <setting-page-title>Authentication</setting-page-title>
</civix>
</extension>
<access_arguments>*always allow*</access_arguments>
<is_public>true</is_public>
</item>
- <item>
- <path>civicrm/admin/setting/authx</path>
- <title>Authentication</title>
- <page_callback>CRM_Admin_Form_Generic</page_callback>
- <adminGroup>System Settings</adminGroup>
- <desc>Configure authentication for external systems</desc>
- <access_arguments>administer CiviCRM</access_arguments>
- </item>
</menu>