Closed poovarasudev closed 2 years ago
Hi @poovarasudev, thanks for reaching out. Basically, the issue here is that you are trying to get temporary credentials "a session token" when being authenticated with a set of temporary credentials, and this is not allowed by the STS service. Please refer to the documentation for more information here. The following paragraphs contains the information I just mentioned:
Permissions The temporary security credentials created by GetSessionToken can be used to make API calls to any AWS service with the following exceptions:
- You cannot call any IAM API operations unless MFA authentication information is included in the request.
- You cannot call any AWS STS API except AssumeRole or GetCallerIdentity.
Thanks!
This issue has not recieved a response in 1 week. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled.
Describe the bug
Facing error while using $stsClient->getSessionToken() in Laravel Application. It is showing the below mentioned error.
Previously this same logic was worked fine in "aws/aws-sdk-php": "3.80"
Now after updating this to "aws/aws-sdk-php": "3.194.4" => this logic is not working.
I searched in all places & checked the latest AWS SDK documentation, but no improvements
Expected Behavior
That same logic need to give a temporary AWS credentials as per the old logics.
Current Behavior
This is throwing error as mentioned in the bug description.
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
SDK version used
v3.194.4
Environment details (OS name and version, etc.)
PHP Version - v8.0