Skip to content

Conversation

@julien-nc
Copy link
Member

Manual backport of #47635

@julien-nc
Copy link
Member Author

/compile

try {
$storedClientSecret = $this->crypto->decrypt($client->getSecret());
$storedClientSecretHash = $client->getSecret();
$clientSecretHash = bin2hex($this->crypto->calculateHMAC($client_secret));

Check notice

Code scanning / Psalm

PossiblyNullArgument

Argument 1 of OCP\Security\ICrypto::calculateHMAC cannot be null, possibly null value provided
Signed-off-by: nextcloud-command <[email protected]>
@AndyScherzinger AndyScherzinger merged commit c55ca78 into stable28 Sep 3, 2024
@AndyScherzinger AndyScherzinger deleted the backport/47635/stable28 branch September 3, 2024 15:25
@blizzz blizzz mentioned this pull request Sep 4, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants