Merge pull request #59726 from nextcloud/backport/59722/stable33

[stable33] fix(federation): Also sign requests with NCU providers
This commit is contained in:
Joas Schilling 2026-04-20 15:04:19 +02:00 committed by GitHub
commit 4e60fb7348
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">