AWS bedrock-agentcore documentation change
Summary
Updated code examples for identity authentication, fixing import statement formatting (replacing non-breaking spaces) and adding clearer invocation instructions with placeholder functions.
Security assessment
These changes are minor code example improvements and formatting fixes. There is no evidence of addressing security vulnerabilities or adding new security documentation. The changes improve code readability and provide better examples for developers using the authentication features.
Diff
diff --git a/bedrock-agentcore/latest/devguide/identity-authentication.md b/bedrock-agentcore/latest/devguide/identity-authentication.md index e3c1aae49..95cbbb349 100644 --- a//bedrock-agentcore/latest/devguide/identity-authentication.md +++ b//bedrock-agentcore/latest/devguide/identity-authentication.md @@ -28 +28,4 @@ AgentCore Identity enables developers to obtain OAuth tokens for either user-del - asyncio.run(write_to_google_drive(access_token= "")) + pass + + # To invoke: + # asyncio.run(write_to_google_drive()) @@ -33,2 +36,2 @@ The process is similar to obtain a token for machine-to-machine calls, as shown - import asyncio - from bedrock_agentcore.identity.auth import requires_access_token, requires_api_key + import asyncio + from bedrock_agentcore.identity.auth import requires_access_token, requires_api_key @@ -41,3 +44,6 @@ The process is similar to obtain a token for machine-to-machine calls, as shown - async def need_token_2LO_async(*, access_token: str): - # Use the access token - asyncio.run(need_token_2LO_async(access_token= "")) + async def need_token_2LO_async(*, access_token: str): + # Use the access token + pass + + # To invoke: + # asyncio.run(need_token_2LO_async())