Merge pull request #59722 from nextcloud/bugfix/noid/still-sign-deprecated-ncu

fix(federation): Also sign requests with NCU providers
This commit is contained in:
Carl Schwan 2026-04-20 13:21:29 +02:00 committed by GitHub
commit c99fd12ce9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -488,7 +488,7 @@ class RequestHandlerController extends Controller {
try {
$provider = $this->cloudFederationProviderManager->getCloudFederationProvider($resourceType);
if ($provider instanceof ISignedCloudFederationProvider) {
if ($provider instanceof ISignedCloudFederationProvider || $provider instanceof \NCU\Federation\ISignedCloudFederationProvider) {
$identity = $provider->getFederationIdFromSharedSecret($sharedSecret, $notification);
} else {
$this->logger->debug('cloud federation provider {provider} does not implements ISignedCloudFederationProvider', ['provider' => $provider::class]);

View file

@ -37,6 +37,7 @@
'preLoginNameUsedAsUserName',
['uid' => &$uid]
)]]></code>
<code><![CDATA[getFederationIdFromSharedSecret]]></code>
</DeprecatedMethod>
</file>
<file src="apps/comments/lib/Activity/Listener.php">