summaryrefslogtreecommitdiffstats
path: root/integrations
Commit message (Expand)AuthorAgeFilesLines
* Hide internal package versions (#20492)KN4CK3R2022-07-271-0/+8
* Fix org members bug (#20489)Vladimir Yakovlev2022-07-261-0/+18
* Add "X-Gitea-Object-Type" header for GET `/raw/` & `/media/` API (#20438)65432022-07-211-2/+6
* Add option to purge users (#18064)zeripath2022-07-142-3/+8
* Fix checks in PR for empty commits #19603 (#20290)Ing. Jaroslav Šafka2022-07-131-2/+28
* Fix various typos (#20338)luzpaz2022-07-121-1/+1
* Add integration tests for the Gitea migration form (#20121)Aravinth Manivannan2022-07-041-0/+56
* Make better use of i18n (#20096)Gusted2022-06-268-36/+35
* Use new config options (#20125)Kyle D2022-06-245-11/+11
* Remove depricated queue indexer usage (#20124)Kyle D2022-06-245-10/+20
* Add more linters to improve code readability (#19989)Wim2022-06-2010-16/+16
* Disable federation by default (#20045)Gusted2022-06-202-17/+30
* User keypairs and HTTP signatures for ActivityPub federation using go-ap (#19...Anthony Wang2022-06-192-1/+104
* Remove legacy git code (ver < 2.0), fine tune markup tests (#19930)wxiaoguang2022-06-162-3/+8
* Remove tab/TabName usage where it's not needed (#19973)Lauris BH2022-06-151-6/+6
* Move issues related files into models/issues (#19931)Lunny Xiao2022-06-1316-137/+142
* Move some code into models/git (#19879)Lunny Xiao2022-06-123-18/+19
* Fix data-race problems in git module (quick patch) (#19934)wxiaoguang2022-06-112-3/+3
* Refactor git module, make Gitea use internal git config (#19732)wxiaoguang2022-06-102-1/+3
* Implement http signatures support for the API (#17565)Wim2022-06-056-0/+142
* Fix typo (#19889)Gusted2022-06-041-1/+1
* Fix order by parameter (#19849)Lunny Xiao2022-06-044-12/+20
* Add API to serve blob or LFS file content (#19689)qwerty2872022-06-041-0/+56
* Allow postgres integration tests to run over unix pipe (#19875)zeripath2022-06-032-11/+42
* Move almost all functions' parameter db.Engine to context.Context (#19748)Lunny Xiao2022-05-207-10/+13
* ContainerRegistry - removed Basic Auth header (#19735)KN4CK3R2022-05-171-4/+1
* Fix issue overview for teams (#19652)Gusted2022-05-163-9/+9
* [Refactor] convert team(s) to apiTeam(s) (#13745)65432022-05-132-12/+14
* Use Vue to refactor pull merge UI (#19650)wxiaoguang2022-05-121-4/+2
* Move access and repo permission to models/perm/access (#19350)Lunny Xiao2022-05-112-2/+5
* Add Webfinger endpoint (#19462)KN4CK3R2022-05-091-0/+68
* Move some helper files out of models (#19355)Lunny Xiao2022-05-081-2/+2
* Repository level enable package or disable (#19323)Lunny Xiao2022-05-085-0/+15
* Allow custom default merge message with .gitea/default_merge_message/<merge_s...Lunny Xiao2022-05-081-3/+4
* Auto merge pull requests when all checks succeeded via API (#9307)kolaente2022-05-084-21/+136
* Hide private repositories in packages (#19584)KN4CK3R2022-05-071-0/+38
* Use for a repo action one database transaction (#19576)65432022-05-031-3/+3
* Federation: return useful statistic information for nodeinfo (#19561)65432022-05-021-0/+4
* Add API to check if team has repo access (#19540)qwerty2872022-05-011-0/+24
* Add API to query collaborators permission for a repository (#18761)Florin Hillebrand2022-04-291-0/+131
* Unset git author/committer variables when running integration tests (#19512)zeripath2022-04-261-0/+7
* Set correct PR status on 3way on conflict checking (#19457)Gusted2022-04-211-0/+73
* Don't panic on `ErrEmailInvalid` (#19441)Gusted2022-04-201-0/+6
* Add Helm Chart registry (#19406)KN4CK3R2022-04-191-0/+166
* upgrade postgres refrence to 14 (#19416)Stephen J. Fuhry2022-04-161-1/+1
* Use "main" as default branch name (#19354)wxiaoguang2022-04-081-0/+1
* Move milestone to models/issues/ (#19278)Lunny Xiao2022-04-084-10/+13
* Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#...wxiaoguang2022-04-082-0/+53
* Remove dependent on session auth for api/v1 routers (#19321)Lunny Xiao2022-04-088-93/+87
* Never use /api/v1 from Gitea UI Pages (#19318)Lunny Xiao2022-04-074-0/+309
n value='backport/48014/stable30'>backport/48014/stable30 Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Security/VerificationToken/IVerificationToken.php
blob: 308b0d5c1a8a6973a6d29dd69f8dba0d0870e608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php

declare(strict_types=1);

/**
 * @copyright Copyright (c) 2021 Arthur Schiwon <blizzz@arthur-schiwon.de>
 *
 * @author Arthur Schiwon <blizzz@arthur-schiwon.de>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 *
 */

namespace OCP\Security\VerificationToken;

use OCP\IUser;

/**
 * @since 23.0.0
 */
interface IVerificationToken {
	/**
	 * Checks whether the a provided tokent matches a stored token and its
	 * constraints. An InvalidTokenException is thrown on issues, otherwise
	 * the check is successful.
	 *
	 * null can be passed as $user, but mind that this is for conveniently
	 * passing the return of IUserManager::getUser() to this method. When
	 * $user is null, InvalidTokenException is thrown for all the issued
	 * tokens are user related.
	 *
	 * @throws InvalidTokenException
	 * @since 23.0.0
	 */
	public function check(string $token, ?IUser $user, string $subject, string $passwordPrefix = '', bool $expiresWithLogin = false): void;

	/**
	 * @since 23.0.0
	 */
	public function create(IUser $user, string $subject, string $passwordPrefix = ''): string;

	/**
	 * Deletes the token identified by the provided parameters
	 *
	 * @since 23.0.0
	 */
	public function delete(string $token, IUser $user, string $subject): void;
}