AWS bedrock-agentcore documentation change
Summary
Formatting improvements including typographical apostrophe changes, addition of example headers, and correction of URL formatting in OAuth configuration examples.
Security assessment
Changes are primarily formatting and documentation structure improvements (adding example sections, fixing markdown formatting, correcting URL template syntax). While the file discusses OAuth authentication, no security features were added or modified. The URL formatting fix (removing extra backticks) improves clarity but doesn't change security implications.
Diff
diff --git a/bedrock-agentcore/latest/devguide/gateway-using-auth-ex-starter.md b/bedrock-agentcore/latest/devguide/gateway-using-auth-ex-starter.md index 09b6f6175..f055b59b9 100644 --- a//bedrock-agentcore/latest/devguide/gateway-using-auth-ex-starter.md +++ b//bedrock-agentcore/latest/devguide/gateway-using-auth-ex-starter.md @@ -13 +13 @@ If you invoke your gateway using `agentcore invoke`, the CLI handles authenticat -For programmatic access, you'll authorize with the following: +For programmatic access, you’ll authorize with the following: @@ -17 +17 @@ For programmatic access, you'll authorize with the following: - * **Outbound authorization using IAM** – The AgentCore CLI configures the following permissions for you, so you don't need any additional setup: + * **Outbound authorization using IAM** – The AgentCore CLI configures the following permissions for you, so you don’t need any additional setup: @@ -38,0 +39,2 @@ First, collect these values with one of the following methods. Select one of the +###### Example + @@ -54 +56 @@ Console - * **Discovery URL** – The format should be `https://cognito-idp.`${Region}`.amazonaws.com/`${UserPoolId}`/.well-known/openid-configuration`. Store the following values: + * **Discovery URL** – The format should be `https://cognito-idp.${Region}.amazonaws.com/${UserPoolId}/.well-known/openid-configuration` . Store the following values: @@ -86 +88 @@ AWS CLI - * Store the `${UserPoolId}` from the URL. The format should be `https://cognito-idp.`${Region}`.amazonaws.com/`${UserPoolId}`/.well-known/openid-configuration`. + * Store the `${UserPoolId}` from the URL. The format should be `https://cognito-idp.${Region}.amazonaws.com/${UserPoolId}/.well-known/openid-configuration`. @@ -104,2 +106 @@ AWS Python SDK (Boto3) -Run the following Python code to store the token endpoint, client ID, and client secret as variables: - + 1. Run the following Python code to store the token endpoint, client ID, and client secret as variables: @@ -133 +137 @@ Second, use the values you gathered to access the token from the token endpoint. -curl +###### Example @@ -134,0 +139 @@ curl +curl @@ -136 +140,0 @@ curl -Run the following command in a terminal, replacing the token endpoint, client ID, and client secret values. @@ -137,0 +142 @@ Run the following command in a terminal, replacing the token endpoint, client ID + 1. Run the following command in a terminal, replacing the token endpoint, client ID, and client secret values. @@ -145 +149,0 @@ The token is in the `access_token` field of the response, while the `token_type` -Python requests package @@ -148 +151,0 @@ Python requests package -Run the following Python code to obtain your access token. The code assumes that you stored the `token_endpoint`, `client_id`, and `client_secret` values from the previous step: @@ -149,0 +153,4 @@ Run the following Python code to obtain your access token. The code assumes that +Python requests package + + + 1. Run the following Python code to obtain your access token. The code assumes that you stored the `token_endpoint` , `client_id` , and `client_secret` values from the previous step: