Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
IAM/STS update error message for assume role with web id - EUCA-12822
Browse files Browse the repository at this point in the history
  • Loading branch information
sjones4 committed Oct 17, 2016
1 parent 42ac981 commit 067a2e1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ public AssumeRoleWithWebIdentityResponseType assumeRoleWithWebIdentity(
RestrictedTypes.doPrivilegedWithoutOwner(
Accounts.getRoleFullName( role ),
new RoleResolver( role ) ) );
} catch ( final AuthException e ) {
throw new TokensException( Code.AccessDenied, "Not authorized to perform sts:AssumeRoleWithWebIdentity" );
} catch ( final Exception e ) {
throw new TokensException( Code.AccessDenied, e.getMessage( ) );
}
Expand Down

0 comments on commit 067a2e1

Please sign in to comment.