Which of the following could be the cause of the error?
The app’s developer incorrectly defined the authenticated principal role access policy.
The app could not confirm the user in the user pool.
The app could not properly authenticate the user with the identity provider.
The app’s developer incorrectly defined the authenticated principal role trust policy.
Explanations:
The issue is not with the authenticated principal role access policy but likely with the role’s trust policy or authentication process.
The issue is not related to confirming the user in the Cognito user pool, as the error occurs after login, implying user confirmation is not the root cause.
The error message specifically points to a permissions issue with assuming a role, not a problem with authenticating the user with the identity provider.
The error “AccessDenied — Not authorized to perform sts” indicates that the authenticated role’s trust policy does not allow the assume role action for web identities, which is the likely cause.