diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-08-24 14:00:33 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-08-26 13:48:08 +0200 |
commit | 6676232a56ec698c43dc432c1003d12f54e549b3 (patch) | |
tree | 3710b0ae728f22ee14c015a801b078dcb6fa8d63 /lib/public | |
parent | cfe5d35862062181883e616ae608b0b0c96aac60 (diff) | |
download | nextcloud-server-6676232a56ec698c43dc432c1003d12f54e549b3.tar.gz nextcloud-server-6676232a56ec698c43dc432c1003d12f54e549b3.zip |
Allow 2FA providers to specify their custom CSP
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Authentication/TwoFactorAuth/IProvidesCustomCSP.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/lib/public/Authentication/TwoFactorAuth/IProvidesCustomCSP.php b/lib/public/Authentication/TwoFactorAuth/IProvidesCustomCSP.php new file mode 100644 index 00000000000..2c1dc001c1a --- /dev/null +++ b/lib/public/Authentication/TwoFactorAuth/IProvidesCustomCSP.php @@ -0,0 +1,38 @@ +<?php + +/** + * @author Christoph Wurst <christoph@winzerhof-wurst.at> + * + * @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 <http://www.gnu.org/licenses/>. + * + */ + +namespace OCP\Authentication\TwoFactorAuth; + +use OCP\AppFramework\Http\ContentSecurityPolicy; + +/** + * @since 13.0.0 + */ +interface IProvidesCustomCSP { + + /** + * @return ContentSecurityPolicy + * + * @since 13.0.0 + */ + public function getCSP(); +} |