mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Implement AssumeRole API for Minio users (#7267)
For actual API reference read here https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html Documentation is added and updated as well at docs/sts/assume-role.md Fixes #6381
This commit is contained in:
committed by
kannappanr
parent
ce588d1489
commit
c3ca954684
@@ -74,7 +74,7 @@ func TestDoesPolicySignatureMatch(t *testing.T) {
|
||||
"X-Amz-Date": []string{now.Format(iso8601Format)},
|
||||
"X-Amz-Signature": []string{
|
||||
getSignature(getSigningKey(globalServerConfig.GetCredential().SecretKey, now,
|
||||
globalMinioDefaultRegion), "policy"),
|
||||
globalMinioDefaultRegion, serviceS3), "policy"),
|
||||
},
|
||||
"Policy": []string{"policy"},
|
||||
},
|
||||
@@ -293,7 +293,7 @@ func TestDoesPresignedSignatureMatch(t *testing.T) {
|
||||
}
|
||||
|
||||
// Check if it matches!
|
||||
err := doesPresignedSignatureMatch(payloadSHA256, req, testCase.region)
|
||||
err := doesPresignedSignatureMatch(payloadSHA256, req, testCase.region, serviceS3)
|
||||
if err != testCase.expected {
|
||||
t.Errorf("(%d) expected to get %s, instead got %s", i, niceError(testCase.expected), niceError(err))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user