authx - Switch to setting-admin@1
authorTim Otten <totten@civicrm.org>
Sat, 23 Sep 2023 07:03:49 +0000 (00:03 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 26 Sep 2023 04:35:51 +0000 (21:35 -0700)
ext/authx/authx.php
ext/authx/info.xml
ext/authx/xml/Menu/authx.xml

index 01091f9b2bf8eee8fe7e4250fe7de899dbe13d30..49d66f417ce22bcdd90afca65ed21172dd31b4ce 100644 (file)
@@ -127,20 +127,3 @@ function authx_civicrm_permission(&$permissions) {
   $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);
-}
index 707bacf717ff5738ad2a0bf3ba7a051d15e2ec09..99de5012be4574483cdc7bcd9c92167f6f9ddcda 100644 (file)
@@ -2,7 +2,7 @@
 <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>
index 9247d93a41916c7829a2461266cd04fc0d47d78b..1f0e738339b4ae32e32d34b315649d597f04049b 100644 (file)
     <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>