Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit e304b1d

Browse files
author
the-djmaze
committed
Nextcloud merge oidcLogin into beforeLogin
1 parent 0ff66f8 commit e304b1d

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

plugins/nextcloud/index.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,9 @@ public function loginCredentials2(string &$sEmail, ?string &$sPassword = null) :
8787
public function beforeLogin(\RainLoop\Model\Account $oAccount, \MailSo\Net\NetClient $oClient, \MailSo\Net\ConnectSettings $oSettings) : void
8888
{
8989
$oSettings->username = \OC::$server->getUserSession()->getUser()->getUID();
90-
$this->oidcLogin($oAccount, $oClient, $oSettings);
91-
}
92-
93-
// https://apps.nextcloud.com/apps/oidc_login
94-
// DISABLED https://github.com/the-djmaze/snappymail/issues/1420#issuecomment-1933045917
95-
public function oidcLogin(\RainLoop\Model\Account $oAccount, \MailSo\Net\NetClient $oClient, \MailSo\Net\ConnectSettings $oSettings) : void
96-
{
90+
/*
91+
// https://apps.nextcloud.com/apps/oidc_login
92+
// DISABLED https://github.com/the-djmaze/snappymail/issues/1420#issuecomment-1933045917
9793
if (\OC::$server->getConfig()->getAppValue('snappymail', 'snappymail-autologin-oidc', false)
9894
&& \OC::$server->getSession()->get('is_oidc')
9995
// && $oClient->supportsAuthType('OAUTHBEARER') // v2.28
@@ -104,6 +100,7 @@ public function oidcLogin(\RainLoop\Model\Account $oAccount, \MailSo\Net\NetClie
104100
\array_unshift($oSettings->SASLMechanisms, 'OAUTHBEARER');
105101
}
106102
}
103+
*/
107104
}
108105

109106
/*

0 commit comments

Comments
 (0)