This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 293
/
manifest.xml
69 lines (69 loc) · 4.9 KB
/
manifest.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?xml version="1.0" encoding="UTF-8"?>
<ajxpcore id="authfront.keystore" label="CONF_MESSAGE[API Keystore]" enabled="true" description="CONF_MESSAGE[Store API keys/token to simplify REST connection]"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
<class_definition filename="plugins/authfront.keystore/class.KeystoreAuthFrontend.php" classname="KeystoreAuthFrontend"/>
<client_settings>
<resources>
<i18n namespace="authfront.keystore" path="plugins/authfront.keystore/i18n"/>
<js className="ApikeysPane" file="plugins/authfront.keystore/class.ApikeysPane.js"/>
<i18n namespace="keystore" path="plugins/authfront.keystore/i18n"/>
<css file="plugins/authfront.keystore/apikeypane.css" autoload="true"/>
</resources>
</client_settings>
<server_settings>
<global_param name="ORDER" type="integer" label="CONF_MESSAGE[Order]"
description="CONF_MESSAGE[Order this plugin with other auth frontends]" default="2"/>
<global_param name="PROTOCOL_TYPE" type="select"
choices="session_only|CONF_MESSAGE[Sessions Only],no_session|CONF_MESSAGE[REST Only],both|CONF_MESSAGE[Session-based or Rest]"
label="CONF_MESSAGE[Protocol Type]" description="CONF_MESSAGE[Enable/disable automatically based on the protocol used]" default="both"/>
<global_param name="USER_GENERATE_KEYS" type="boolean" label="Let users generate keys"
description="Display a Generate Key button in the Api key panel to let the user create their own key. Not really useful yet, for future usage."
default="false" mandatory="false" expose="true"/>
</server_settings>
<registry_contributions>
<client_configs>
<component_config className="AjxpTabulator::userdashboard_main_tab">
<additional_tab id="apikeys_pane"
tabInfo='{"id":"my-api-data","iconClass":"icon-key","element":"apikeys_pane","closeable":false,"label":"keystore.1","title":"keystore.2","dontFocus":true,"position":6}'
paneInfo='{"type":"widget"}'><![CDATA[
<div id="apikeys_pane" ajxpClass="ApikeysPane" ajxpOptions='{}' class="tabbed_editor" style="position:relative;">
<div id="buttons_bar" class="action_bar" ajxpClass="ActionsToolbar" ajxpOptions='{"toolbarsList":["keystore_bar"]}'></div>
<h3 class="dashboard_panel_title">AJXP_MESSAGE[keystore.1]</h3>
<div id="token_results"><span class="icon-remove-sign"></span><div id="token_results_content"></div></div>
<div style="padding:10px;overflow: auto;" class="fit_me_to_bottom">
<h2>AJXP_MESSAGE[keystore.9]</h2>
<ul></ul>
</div>
</div>
]]></additional_tab>
</component_config>
</client_configs>
<actions>
<action name="keystore_generate_auth_token">
<rightsContext adminOnly="false" noUser="false" read="false" userLogged="true" write="false"/>
<processing>
<serverCallback methodName="authTokenActions" restParams="/device" sdkMethodName="generateAuthToken" developerComment="Generate and store a authentication key that can be used by the currently logged user. Used by SDKs talking to REST API to avoid renegociating basic auth on each query.">
<input_param name="device" type="string"
description="A unique ID identifying the client connecting."/>
</serverCallback>
</processing>
</action>
<action name="keystore_revoke_tokens">
<rightsContext adminOnly="false" noUser="false" read="false" userLogged="true" write="false"/>
<processing>
<serverCallback methodName="authTokenActions" restParams="/" sdkMethodName="revokeAuthToken" developerComment="Revoke current tokens for logged user."/>
</processing>
</action>
<action name="keystore_list_tokens">
<rightsContext adminOnly="false" noUser="false" read="false" userLogged="true" write="false"/>
<processing>
<serverCallback methodName="authTokenActions" restParams="/" sdkMethodName="listAuthToken" developerComment="List current tokens for logged user."/>
</processing>
</action>
</actions>
<hooks>
<serverCallback methodName="revokeUserTokens" hookName="user.after_password_change"/>
<serverCallback methodName="revokeUserTokens" hookName="user.after_delete"/>
</hooks>
</registry_contributions>
</ajxpcore>