/oauth/authorize
A view of the oauth module, defined in kernel/private/modules/oauth/module.php and run by kernel/private/modules/oauth/authorize.php.
Address
/oauth/authorizeWho 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: oauth/* (every function of the module) in one of the roles assigned to them.
Example
A link in a template (ezurl adds the siteaccess and quotes the address); the parameter values are placeholders:
<a href='/oauth/authorize'|ezurl>oauth/authorize</a>From PHP, the redirect a view gives after it has done its work:
return $Module->redirectTo( '/oauth/authorize' );Related
Generated by ./console exp:help:examples from kernel/private/modules/oauth/module.php, kernel/private/modules/oauth/authorize.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.