AWS Security ChangesHomeSearch

AWS cognito high security documentation change

Service: cognito · 2025-10-28 · Security-related high

File: cognito/latest/developerguide/cognito-user-pools-define-resource-servers.md

Summary

Added detailed documentation for resource binding (RFC 8707), including implementation steps and token validation requirements.

Security assessment

The addition of resource binding documentation explicitly addresses security by requiring API resources to validate the `aud` claim in access tokens. This prevents token misuse and aligns with OAuth 2.0 security best practices.

Diff

diff --git a/cognito/latest/developerguide/cognito-user-pools-define-resource-servers.md b/cognito/latest/developerguide/cognito-user-pools-define-resource-servers.md
index abb7f30bc..9c46d5e19 100644
--- a//cognito/latest/developerguide/cognito-user-pools-define-resource-servers.md
+++ b//cognito/latest/developerguide/cognito-user-pools-define-resource-servers.md
@@ -5 +5 @@
-API authorizationMachine-to-machine (M2M) authorizationAbout scopesAbout resource servers
+API authorizationMachine-to-machine (M2M) authorizationAbout scopesAbout resource serversResource binding
@@ -24,0 +25,2 @@ With Amazon Cognito, the scopes in access tokens can authorize access to externa
+  * Resource binding
+
@@ -244,0 +247,25 @@ Use the following commands to specify resource server settings for your user poo
+## Resource binding
+
+With resource binding, also referred to as resource indicators, you can request API-specific grants from your user pool authorization server. Resource binding is an OAuth 2.0 extension defined in [RFC 8707](https://www.rfc-editor.org/rfc/rfc8707.html) that allows clients to explicitly specify which resource server they intend to access during authorization requests. With resource binding, your API configurations can decline access for tokens that aren't specifically intended for them.
+
+###### Note
+
+You can only bind access tokens to resources for users. You can't request a resource binding with client-credentials M2M grants.
+
+When you use resource binding with Amazon Cognito user pools, clients can include a `resource` parameter in their authentication requests to your user pool authorization server . Your user pool validates that the value of the requested resource is a URL, following the same scheme rules as [app client](./user-pool-settings-client-apps.html#cognito-user-pools-app-idp-settings-about) callback URLs: `https://`, `http://` with `localhost` only, or a custom scheme like `myapp://`. Amazon Cognito sets the requested URI as the audience in the `aud` claim of the [access token](./amazon-cognito-user-pools-using-the-access-token.html). If the requested resource is a user pool resource server, the resource server identifier must be in a URL format. You can request one resource per authentication request.
+
+This feature is exclusive to [managed login authentication](./authentication-flows-selection-managedlogin.html) with your user pool OAuth 2.0 authorization server. You can request resource binding in implicit and authorization-code grants from the [Authorize endpoint](./authorization-endpoint.html). Token-refresh grants from the [Token endpoint](./token-endpoint.html) carry over the `aud` claim from the original request. It is not currently available in [SDK authentication models](./authentication-flows-selection-sdk.html).
+
+###### Implement resource binding with your Amazon Cognito user pool
+
+  1. Configure one or more resource servers in your user pool with unique identifiers.
+
+  2. In your authorization request to `/oauth2/authorize`, request an authorization code or implicit grant and include the `resource` parameter. The value of `resource` must be a URL-formatted resource server identifier or a URL. For example, `&resource=https://solar-system-data-api.example.com`.
+
+  3. The authorization server validates the resource request, completes authentication, and sets the access token `aud` claim to the requested resource URL.
+
+  4. To validate that tokens were issued specifically for it, the resource that consumes your user's access token checks the `aud` claim.
+
+
+
+