/apikey/list
A view of the apikey module, defined in kernel/apikey/module.php and run by kernel/apikey/list.php.
Address
/apikey/listWho may open it
Listed in settings/site.ini [RoleSettings] PolicyOmitList[]: no policy is checked, everyone may open it.
The view names no policy function, so the user needs a policy for the whole module: apikey/* (every function of the module) in one of the roles assigned to them.
Details
| Key | Value |
|---|---|
| Navigation part | ezmynavigationpart |
| Single POST actions | CreateKeyButton: CreateKey, RevokeKeyButton: RevokeKey, ConfirmRevokeKeyButton: ConfirmRevokeKey |
| POST action parameters | CreateKey (Name: ApiKeyName, Scopes: ApiKeyScopes, Expiry: ApiKeyExpiry, Nonce: ApiKeyNonce), RevokeKey (KeyID: RevokeKeyButton), ConfirmRevokeKey (KeyID: RevokeKeyID) |
Example
A link in a template (ezurl adds the siteaccess and quotes the address); the parameter values are placeholders:
<a href='/apikey/list'|ezurl>apikey/list</a>From PHP, the redirect a view gives after it has done its work:
return $Module->redirectTo( '/apikey/list' );Related
Generated by ./console exp:help:examples from kernel/apikey/module.php, kernel/apikey/list.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.