diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-12-19 10:48:54 +0100 |
---|---|---|
committer | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2025-01-07 10:34:30 +0100 |
commit | f52b4c5eb244c1a1f33b68b06189299f16fefad5 (patch) | |
tree | b267d6f7e9ff4f669ab72e505d97226ae34b7f31 /core/Controller | |
parent | cca0e8448066719279e8076e4b1e2af57fda0d09 (diff) | |
download | nextcloud-server-f52b4c5eb244c1a1f33b68b06189299f16fefad5.tar.gz nextcloud-server-f52b4c5eb244c1a1f33b68b06189299f16fefad5.zip |
fix: Remove skip of grant page, only skip first step
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core/Controller')
-rw-r--r-- | core/Controller/ClientFlowLoginController.php | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/core/Controller/ClientFlowLoginController.php b/core/Controller/ClientFlowLoginController.php index 76f447f2101..8d84ac100fa 100644 --- a/core/Controller/ClientFlowLoginController.php +++ b/core/Controller/ClientFlowLoginController.php @@ -26,7 +26,6 @@ use OCP\Authentication\Exceptions\InvalidTokenException; use OCP\Authentication\Token\IToken; use OCP\Defaults; use OCP\EventDispatcher\IEventDispatcher; -use OCP\IAppConfig; use OCP\IL10N; use OCP\IRequest; use OCP\ISession; @@ -56,7 +55,6 @@ class ClientFlowLoginController extends Controller { private ICrypto $crypto, private IEventDispatcher $eventDispatcher, private ITimeFactory $timeFactory, - private IAppConfig $appConfig, ) { parent::__construct($appName, $request); } @@ -185,10 +183,6 @@ class ClientFlowLoginController extends Controller { /** @var IUser $user */ $user = $this->userSession->getUser(); - if (in_array($clientName, $this->appConfig->getValueArray('oauth2', 'autoGrantApplications', []))) { - return $this->generateAppPassword($stateToken, $clientIdentifier); - } - $response = new StandaloneTemplateResponse( $this->appName, 'loginflow/grant', |