AWS bedrock-agentcore documentation change
Summary
Syntax formatting changes in code examples for OAuth token acquisition and API key usage
Security assessment
Whitespace and code style adjustments without modifying security-related content or authentication flows
Diff
diff --git a/bedrock-agentcore/latest/devguide/identity-authentication.md b/bedrock-agentcore/latest/devguide/identity-authentication.md index 5000c4da3..6913635d3 100644 --- a//bedrock-agentcore/latest/devguide/identity-authentication.md +++ b//bedrock-agentcore/latest/devguide/identity-authentication.md @@ -13,3 +13,2 @@ AgentCore Identity enables developers to obtain OAuth tokens for either user-del - @requires_access_token ( - # Uses the same credential provider name created above - provider_name = "google-provider", + @requires_access_token(# Uses the same credential provider name created above + provider_name= "google-provider", @@ -17 +16 @@ AgentCore Identity enables developers to obtain OAuth tokens for either user-del - scopes = ["https://www.googleapis.com/auth/drive.metadata.readonly"], + scopes= ["https://www.googleapis.com/auth/drive.metadata.readonly"], @@ -23,3 +22 @@ AgentCore Identity enables developers to obtain OAuth tokens for either user-del - force_authentication=False, - ) - async def write_to_google_drive(*, access_token: str): + force_authentication= False,)async def write_to_google_drive(*, access_token: str): @@ -34,2 +31 @@ The process is similar to obtain a token for machine-to-machine calls, as shown - @requires_access_token( - provider_name="my-api-key-provider", # replace with your own credential provider name + @requires_access_token(provider_name= "my-api-key-provider", # replace with your own credential provider name @@ -37,3 +33 @@ The process is similar to obtain a token for machine-to-machine calls, as shown - auth_flow='M2M', - ) - async def need_token_2LO_async(*, access_token: str): + auth_flow= 'M2M',)async def need_token_2LO_async(*, access_token: str):