fix(sts): answer a disabled federation feature with AWS's sentence (#9158)

GetWebIdentityToken answered the error shape's own @documentation prose,
which the model carries to describe the error rather than to be sent as
one: the model states this refusal's code and status and not its message,
so documentation was what the wording fell back to. AWS answers
'OutboundWebIdentityFederation is disabled.', wholly fixed text.
This commit is contained in:
Priamo Germosen authored and GitHub committed 2026-11-21 18:11:03 -04:00
1 parent 4735606fb9
commit 1bcd7620bb
3 files changed
+16 -5

No files matched your search

@@ -210,8 +210,7 @@ class WebIdentityTokenIntegrationTest {
token("RS256").when().post("/").then().statusCode(403)
.body(CODE, equalTo("OutboundWebIdentityFederationDisabledException"))
.body(MESSAGE, containsString("The outbound web identity federation feature is not"
+ " enabled for this account."))
.body(MESSAGE, equalTo("OutboundWebIdentityFederation is disabled."))
.body(not(containsString("FeatureDisabled")));
enabledIssuer();