Godwin Vincent cd0a29d2ae
Device management agent - AgentCore runtime, observability, frontend added (#241)
* updated README.md file with bearer token generation

* updated README.md file with bearer token generation-removed client id and secret credentials

* removed hardcoded domain

* added agent runtime, frontend, observability and agentcore identity

* update README.md file to reflect frontend testing
2025-08-13 09:31:29 -07:00

18 lines
404 B
Python

import os
from dotenv import load_dotenv
from bedrock_agentcore.identity.auth import requires_access_token
load_dotenv()
@requires_access_token(
provider_name="vgs-identity-provider",
scopes=[],
auth_flow="M2M",
)
def get_gateway_access_token(access_token: str):
print(f"Access Token: {access_token}")
return access_token
if __name__ == "__main__":
get_gateway_access_token()