From d097d04464cd01051f99648a3924ea657a5b5ccd Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Wed, 6 Nov 2024 12:34:07 +0100 Subject: [PATCH] fix reuse issues Signed-off-by: Julien Veyssier --- docs/token_exchange.md | 4 +++ lib/Event/ExchangedTokenRequestedEvent.php | 25 +++---------------- .../TokenExchangeFailedException.php | 5 ++-- .../ExchangedTokenRequestedListener.php | 22 +++------------- lib/Model/Token.php | 25 +++---------------- lib/Service/TokenService.php | 25 +++---------------- 6 files changed, 22 insertions(+), 84 deletions(-) diff --git a/docs/token_exchange.md b/docs/token_exchange.md index a1588bc2..4248a3c4 100644 --- a/docs/token_exchange.md +++ b/docs/token_exchange.md @@ -1,3 +1,7 @@ + ### Token exchange If your IdP supports token exchange, user_oidc can exchange the login token against another token. diff --git a/lib/Event/ExchangedTokenRequestedEvent.php b/lib/Event/ExchangedTokenRequestedEvent.php index 0c98ab3c..7db7aaec 100644 --- a/lib/Event/ExchangedTokenRequestedEvent.php +++ b/lib/Event/ExchangedTokenRequestedEvent.php @@ -1,27 +1,10 @@ - * - * @author Julien Veyssier - * - * @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 . - * - */ declare(strict_types=1); +/** + * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ namespace OCA\UserOIDC\Event; diff --git a/lib/Exception/TokenExchangeFailedException.php b/lib/Exception/TokenExchangeFailedException.php index 5cb600d5..4d08bba4 100644 --- a/lib/Exception/TokenExchangeFailedException.php +++ b/lib/Exception/TokenExchangeFailedException.php @@ -1,10 +1,9 @@ - * - * @author Julien Veyssier - * - * @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 . + * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later */ namespace OCA\UserOIDC\Listener; diff --git a/lib/Model/Token.php b/lib/Model/Token.php index 5ec2f660..4bc5422d 100644 --- a/lib/Model/Token.php +++ b/lib/Model/Token.php @@ -1,27 +1,10 @@ - * - * @author Julien Veyssier - * - * @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 . - * - */ declare(strict_types=1); +/** + * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ namespace OCA\UserOIDC\Model; diff --git a/lib/Service/TokenService.php b/lib/Service/TokenService.php index 5689c36a..803056d8 100644 --- a/lib/Service/TokenService.php +++ b/lib/Service/TokenService.php @@ -1,27 +1,10 @@ - * - * @author Julien Veyssier - * - * @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 . - * - */ declare(strict_types=1); +/** + * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ namespace OCA\UserOIDC\Service;