AWS limits the credentials GetSessionToken returns twice over, and Floci held
them to neither (STS API Reference, GetSessionToken, "Permissions"): "You cannot
call any IAM API operations unless MFA authentication information is included in
the request", and "You cannot call any AWS STS API except AssumeRole or
GetCallerIdentity". A session minted without a device reached every IAM
operation and the whole of STS with whatever its user's policies allowed.
Under enforcement such a session is now refused every IAM operation unless an
MFA device minted it, and every STS operation but AssumeRole and
GetCallerIdentity whether or not one did, carrying the sentence GetSessionToken
and GetFederationToken already answer a session caller with. The IAM half names
what the credentials do not hold. AWS publishes no sentence for either refusal,
so both are Floci's own wording, and the STS page records that along with the
difference between the reference's two bullets and the user guide's compressed
one, which this follows the reference on.
A federated session keeps the limits it already carried, an assumed-role session
carries none of these, and the sessions Floci mints for a presigned URL, for a
delegation and for its own signing all name a role or a presigned action, so none
of them is one of these.