Home
last modified time | relevance | path

Searched refs:token (Results 1 – 18 of 18) sorted by relevance

/dokuwiki/_test/tests/inc/
H A DJWTTest.php21 $token = $jwt->getToken();
25 $jwt = JWT::validate($token);
32 $this->assertEquals($token, $jwt->getToken());
38 $this->assertNotEquals($token, $jwt->getToken());
52 $token = $jwt->getToken();
58 JWT::validate($token);
64 $token = $jwt->getToken();
70 JWT::validate($token);
/dokuwiki/inc/Remote/OpenApiDoc/
H A DClassResolver.php110 foreach ($tokens as $token) {
111 if (!is_array($token)) {
123 $tokenname = token_name($token[0]);
125 if ($token[0] === T_CLASS) {
129 if ($token[0] === T_USE) {
134 if ($token[0] === T_AS) {
140 switch ($token[0]) {
144 $currentUse[$record] .= $token[1];
/dokuwiki/inc/Action/
H A DResendpwd.php80 $token = preg_replace('/[^a-f0-9]+/', '', $INPUT->str('pwauth'));
82 if ($token) {
85 $tfile = $conf['cachedir'] . '/' . $token[0] . '/' . $token . '.pwauth';
156 $token = md5(auth_randombytes(16)); // random secret
157 $tfile = $conf['cachedir'] . '/' . $token[0] . '/' . $token . '.pwauth';
158 $url = wl('', ['do' => 'resendpwd', 'pwauth' => $token], true, '&');
H A DAuthtoken.php30 $token = JWT::fromUser($INPUT->server->str('REMOTE_USER'));
31 $token->save();
/dokuwiki/inc/Ui/
H A DUserResendPwd.php27 $token = preg_replace('/[^a-f0-9]+/', '', $INPUT->str('pwauth'));
33 if (!$conf['autopasswd'] && $token) {
34 $form = $this->formSetNewPassword($token);
50 protected function formSetNewPassword($token) argument
58 $form->setHiddenField('token', $token);
H A DUserProfile.php172 $token = JWT::fromUser($user);
179 …$form->addHTML('<p><code style="display: block; word-break: break-word">' . $token->getToken() . '…
/dokuwiki/inc/
H A Dfulltext.php84 foreach ($q['parsed_ary'] as $token) {
85 switch (substr($token, 0, 3)) {
89 $word = substr($token, 3);
96 $phrase = substr($token, 3);
124 $ns = cleanID(substr($token, 3)) . ':';
772 foreach ($tokens as $token) {
773 if ($token === '(') {
777 } elseif ($token === '-(') {
781 } elseif ($token === ')') {
786 } elseif ($token === 'and') {
[all …]
H A DJWT.php45 public static function validate($token) argument
47 [$header, $payload, $signature] = sexplode('.', $token, 3, '');
84 if (file_get_contents($file) !== $token) {
110 $token = new self($user, time());
111 $token->save();
112 return $token;
H A Dauth.php215 [$type, $token] = sexplode(' ', $headers['authorization'], 2);
216 if ($type !== 'Bearer') $token = ''; // not the token we want
221 $token = $headers['x-dokuwiki-token'];
224 if (empty($token)) return false;
228 $authtoken = JWT::validate($token);
1226 $token = preg_replace('/[^a-f0-9]+/', '', $INPUT->str('pwauth'));
1228 if ($token) {
1231 $tfile = $conf['cachedir'] . '/' . $token[0] . '/' . $token . '.pwauth';
1302 $token = md5(auth_randombytes(16)); // random secret
1303 $tfile = $conf['cachedir'] . '/' . $token[0] . '/' . $token . '.pwauth';
[all …]
H A Dcommon.php126 * @param null|string $token security token or null to read it from request variable
129 function checkSecurityToken($token = null) argument
135 if (is_null($token)) $token = $INPUT->str('sectok');
136 if (getSecurityToken() != $token) {
H A Dinfoutils.php643 if (preg_match('/(notify|pass|auth|secret|ftp|userinfo|token|buid|mail|proxy)/i', $key)) {
H A Dmedia.php1868 $token = $id;
1869 if ($w) $token .= '.' . $w;
1870 if ($h) $token .= '.' . $h;
1872 return substr(PassHash::hmac('md5', $token, auth_cookiesalt()), 0, 6);
/dokuwiki/_test/tests/lib/exe/
H A Dfetch_statuscodes_external.test.php34 return '/lib/exe/fetch.php?'.$w.$h.'{%token%}media='.rawurlencode($this->media);
39 return $request->get(array(), str_replace('{%token%}', $token, $this->getUri()));
H A Dfetch_imagetoken.test.php38 function fetchResponse($token){ argument
40 return $request->get(array(),str_replace('{%token%}',$token,$this->getUri()));
88 foreach(array($any_token, $no_token) as $token) {
89 $response = $this->fetchResponse($token);
/dokuwiki/vendor/splitbrain/php-jsstrip/
H A Dcomposer.lock270 "phpunit/php-token-stream": "^3.1.3 || ^4.0",
488 "name": "phpunit/php-token-stream",
492 "url": "https://github.com/sebastianbergmann/php-token-stream.git",
497 …"url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/a853a0e183b9db7eed…
530 "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
535 "issues": "https://github.com/sebastianbergmann/php-token-stream/issues",
536 "source": "https://github.com/sebastianbergmann/php-token-stream/tree/master"
/dokuwiki/vendor/splitbrain/slika/
H A Dcomposer.lock493 "phpunit/php-token-stream": "^3.1.1 || ^4.0",
711 "name": "phpunit/php-token-stream",
715 "url": "https://github.com/sebastianbergmann/php-token-stream.git",
720 …"url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/a853a0e183b9db7eed…
753 "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
758 "issues": "https://github.com/sebastianbergmann/php-token-stream/issues",
759 "source": "https://github.com/sebastianbergmann/php-token-stream/tree/master"
/dokuwiki/vendor/splitbrain/lesserphp/src/
H A DParser.php1478 foreach ($look as $token) {
1479 $pos = strpos($text, $token);
1481 if (!isset($min) || $pos < $min[1]) $min = [$token, $pos];
/dokuwiki/vendor/geshi/geshi/src/
H A Dgeshi.php4694 foreach ($tokens as $token => $sub_tokens) {
4695 $list .= $token;