mirror of
https://github.com/anikeen-com/yaac.git
synced 2026-03-13 13:46:10 +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:
@@ -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