3 namespace dokuwiki\Action
;
5 use dokuwiki\Action\Exception\ActionAbort
;
6 use dokuwiki\Action\Exception\ActionException
;
9 class Authtoken
extends AbstractUserAction
12 public function minimumPermission()
18 public function checkPreconditions()
20 parent
::checkPreconditions();
22 if (!checkSecurityToken()) throw new ActionException('profile');
26 public function preProcess()
30 $token = JWT
::fromUser($INPUT->server
->str('REMOTE_USER'));
32 throw new ActionAbort('profile');