Skip to content

Commit e643a90

Browse files
committed
Fix grant type condition in Authorization
#13
1 parent 803137d commit e643a90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Authorization.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public static function calculateAuthorizationId(string $serviceName, string $cli
9797
{
9898
// Hotfix: An authorization using Authorization Code Flow must not be deterministic.
9999
// This is properly implemented and solved in the 2.x branch of this package
100-
if ($scope === self::GRANT_AUTHORIZATION_CODE) {
100+
if ($grantType === self::GRANT_AUTHORIZATION_CODE) {
101101
try {
102102
return $serviceName . '-' . $clientId . '-' . Uuid::uuid4()->toString();
103103
} catch (\Exception $e) {

0 commit comments

Comments
 (0)