Home
last modified time | relevance | path

Searched full:token (Results 1 – 25 of 50) sorted by relevance

12

/dokuwiki/_test/tests/inc/
H A DJWTTest.php13 // no token file yet
17 // initialize a new token
21 $token = $jwt->getToken();
24 // validate the token
25 $jwt = JWT::validate($token);
30 // next access should get the same token
32 $this->assertEquals($token, $jwt->getToken());
35 // saving should create a new token
38 $this->assertNotEquals($token, $jwt->getToken());
52 $token = $jwt->getToken();
[all …]
H A Dauth_deleteprofile.test.php14 …* 5. Any of invalid security token, missing/not set 'delete' flag, missing/unchecked 'confirm_del…
/dokuwiki/inc/
H A DJWT.php39 * Create a new instance from a token
41 * @param $token
45 public static function validate($token) argument
47 [$header, $payload, $signature] = sexplode('.', $token, 3, '');
84 if (file_get_contents($file) !== $token) {
94 * Loads an existing token if available
110 $token = new self($user, time());
111 $token->save();
112 return $token;
117 * Get the JWT token for this instance
[all …]
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 Dauth.php182 * Try a token login
184 * @return bool true if token login succeeded
215 [$type, $token] = sexplode(' ', $headers['authorization'], 2);
216 if ($type !== 'Bearer') $token = ''; // not the token we want
219 // check x-dokuwiki-token header
220 if (isset($headers['x-dokuwiki-token'])) {
221 $token = $headers['x-dokuwiki-token'];
224 if (empty($token)) return false;
226 // check token
228 $authtoken = JWT::validate($token);
[all …]
H A Dfetch.functions.php156 //check token for external image and additional for resized and cached images
171 // check token for resized images
/dokuwiki/_test/tests/lib/exe/
H A Dfetch_imagetoken.test.php35 return '/lib/exe/fetch.php?'.$w.$h.'{%token%}media='.$this->media;
38 function fetchResponse($token){ argument
40 return $request->get(array(),str_replace('{%token%}',$token,$this->getUri()));
44 * modified image request with valid token
60 * modified image request with invalid token
69 * modified image request with no token
78 * native image request which doesn't require a token
79 * try: with a token & without a token
88 foreach(array($any_token, $no_token) as $token) {
89 $response = $this->fetchResponse($token);
H A Dfetch_statuscodes_external.test.php34 return '/lib/exe/fetch.php?'.$w.$h.'{%token%}media='.rawurlencode($this->media);
37 function fetchResponse($token) { argument
39 return $request->get(array(), str_replace('{%token%}', $token, $this->getUri()));
43 * modified image request with valid token
44 * and not-modified image request with valid token
78 * modified image request with invalid token
94 * modified image request with no token
95 * and not modified image with no token
/dokuwiki/inc/Action/
H A DResendpwd.php59 * - validating the password reset auth token
80 $token = preg_replace('/[^a-f0-9]+/', '', $INPUT->str('pwauth'));
82 if ($token) {
83 // we're in token phase - get user info from token
85 $tfile = $conf['cachedir'] . '/' . $token[0] . '/' . $token . '.pwauth';
91 // token is only valid for 3 days
155 // generate auth token
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);
47 * @params string $token cleaned pwauth request variable
50 protected function formSetNewPassword($token) argument
58 $form->setHiddenField('token', $token);
H A DUserProfile.php163 * Get the authentication token form
172 $token = JWT::fromUser($user);
179 …$form->addHTML('<p><code style="display: block; word-break: break-word">' . $token->getToken() . '…
/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/Parsing/Lexer/
H A DLexer.php47 * Adds a token search pattern for a particular parsing mode.
100 * parser handler for this token only.
104 * @param string $special Use this mode for this one token.
129 * unparsed and parsed token invokes a call to the held listener.
172 * Sends the matched token and any leading unmatched
177 * @param string $matched Actual token match.
221 … * Test to see if the mode is one where this mode is entered for this token only and automatically
233 * Strips the magic underscore marking single token modes.
249 * @param boolean $is_match Token is recognised rather
281 * recognised token and finally the action the parser is to take.
/dokuwiki/inc/parser/
H A Dparser.php21 // modes where the token is simply replaced - they can not contain any
27 // modes which have a start and end token but inside which
/dokuwiki/.github/workflows/
H A DtodoChecker.yml20 token: ${{ secrets.GITHUB_TOKEN }}
H A Drelease-build.yml34 # a privileged token is needed here to create the (protected) tag
35 github-token: ${{ secrets.RELEASE_TOKEN }}
/dokuwiki/lib/plugins/extension/
H A Daction.php60 echo 'Security Token did not match. Possible CSRF attack.';
/dokuwiki/inc/lang/en/
H A Dlang.php112 $lang['proftokenlegend'] = 'Authentication Token';
113 $lang['proftokengenerate'] = 'Reset Token';
114Token can be used to let 3rd party applications to log in and act on your behalf. Resetting the to…
/dokuwiki/inc/lang/pt-br/
H A Dlang.php175 $lang['proftokenlegend'] = 'Token de Autenticação';
176 $lang['proftokengenerate'] = 'Redefinir Token';
177token de autenticação pode ser usado para permitir que aplicativos de terceiros façam login e atue…
/dokuwiki/inc/lang/de/
H A Dlang.php189 $lang['proftokenlegend'] = 'Zugangs-Token';
190 $lang['proftokengenerate'] = 'Rücksetz-Token';
191Token kann von Dritten benutzt werden, um Aktionen in Deinem Namen durchzuführen. Wird das Token z…
/dokuwiki/inc/lang/pt/
H A Dlang.php164 $lang['proftokenlegend'] = 'Token de autenticação';
165 $lang['proftokengenerate'] = 'Token para limpar';
166Token de Autenticação pode ser usado para permitir que aplicativos de terceiros façam login e atue…
/dokuwiki/inc/lang/ca/
H A Dlang.php157 $lang['proftokenlegend'] = 'Token d\'autenticació';
158 $lang['proftokengenerate'] = 'Token de reseteig';
159token d\'autenticació pot ser usat per aplicacions de 3ers per a identificar-se i actual en el teu…
/dokuwiki/vendor/geshi/geshi/src/geshi/
H A Dgo.php248 'tls.Listener', 'token.Position', 'token.Token', 'unicode.CaseRange',
256 'xml.SyntaxError', 'xml.Token', 'xml.UnmarshalError', 'xtea.Cipher',
/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"

12