1
0
mirror of https://github.com/minio/minio-cpp.git synced 2025-04-18 08:24:00 +03:00

fix(credentials): check expiry properly (#190)

Expiry flag was inverted when checking credentials. This causes ChainedCredentialsProvider to fail.
This commit is contained in:
grasevski 2025-02-11 12:46:13 +11:00 committed by GitHub
parent eb14af15cd
commit 89e4c0bfe1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,7 +69,7 @@ struct Credentials {
bool IsExpired() const { return expired(expiration); }
explicit operator bool() const {
return !err && !access_key.empty() && expired(expiration);
return !err && !access_key.empty() && !expired(expiration);
}
static Credentials ParseXML(std::string_view data, const std::string& root);