mirror of
https://github.com/anikeen-com/yaac.git
synced 2026-11-01 13:19:38 +00:00
Check the authorization status is "valid" rather than "ready"
According to https://tools.ietf.org/html/rfc8555#section-7.1.4 the status of an authorization object can only be "pending", "valid", or "revoked". An order can have a status of "ready" but never an authorization.
This commit is contained in:
1 parent
4c7b6b8e60
commit
f1d31dee88
1 file changed
+1
-1
+1
-1
@@ -286,7 +286,7 @@ class Client
|
||||
sleep(1);
|
||||
} while ($maxAttempts < 0 && $data['status'] == 'pending');
|
||||
|
||||
return (isset($data['status']) && $data['status'] == 'ready');
|
||||
return (isset($data['status']) && $data['status'] == 'valid');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user