AWS cognito medium security documentation change
Summary
Clarified that refreshed access tokens retain the `aud` claim from resource-bound requests.
Security assessment
Maintaining the `aud` claim during token refresh ensures consistent enforcement of resource binding, a security measure to prevent token scope escalation. This directly supports the security feature added in other documentation.
Diff
diff --git a/cognito/latest/developerguide/token-endpoint.md b/cognito/latest/developerguide/token-endpoint.md index c2121e5d6..df585e586 100644 --- a//cognito/latest/developerguide/token-endpoint.md +++ b//cognito/latest/developerguide/token-endpoint.md @@ -122 +122 @@ To generate new access and ID tokens for a user's session, set the value of `ref -Returns a new refresh token with new ID and access token when [refresh token rotation](./amazon-cognito-user-pools-using-the-refresh-token.html#using-the-refresh-token-rotation) is active, otherwise returns only ID and access tokens. +Returns a new refresh token with new ID and access token when [refresh token rotation](./amazon-cognito-user-pools-using-the-refresh-token.html#using-the-refresh-token-rotation) is active, otherwise returns only ID and access tokens. If the original access token was [bound to an API resource](./cognito-user-pools-define-resource-servers.html#cognito-user-pools-resource-binding), the new access token maintains the requested API url in the `aud` claim.