The security token included in the request is invalid

While Emebeding the Quicksight Q bar into my application
I am facing below ERROR

com.amazonaws.services.quicksight.model.AmazonQuickSightException: The security token included in the request is invalid. (Service: AmazonQuickSight; Status Code: 403; Error Code: UnrecognizedClientException; Request ID: 1e3bb806-83c8-4a60-9a9a-f685020d6f0f; Proxy: null)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleErrorResponse(AmazonHttpClient.java:1879) ~[aws-java-sdk-core-1.12.677.jar:?]


I am getting the accessKey and SecretKey from AssumeRoleRequest by passing the uerRole
Please help me to resolve this

@jayakumarim ,

Can you post the QuickSight API call you are using the generate the embed url and the details you are passing ?

Kind regards,
Koushik

@Koushik_Muthanna
I used BasicAWSCredentials before. After using the BasicSessionCredentials to prepare AmazonQuickSight it is working fine, Thank you

1 Like