Skip to content

agentcore fetch command looking for default identity name as <agentname>-oauth #715

@govindhi

Description

@govindhi

Description

The agentcore fetch command looks for the identity in the name (agentname)-oauth. The TUI does not ask for the identity name when the agent is selected. By default it is trying to look for the identity name as (agentname)-oauth.

Here's the error:
agentcore fetch access --name travel-planner-gateway
Error: No managed OAuth credential found for 'travel-planner-gateway'. Expected credential 'travel-planner-gateway-oauth'. Re-create the resource with --client-id and --client-secret.

Steps to Reproduce

  1. add agent
  2. create identity (use name of the identity as say (agentname)OAuth

Expected Behavior

In TUI, after selecting the agent name, it should show the list of identities available for the user to pick the one for the agent. The CLI command should also provide option to choose the identity name rather than using the default ie (agentname)-oauth

Actual Behavior

The agentcore fetch command automatically tries to get the identity name as (agentname)_oauth.

CLI Version

0.3.0-preview.9.0

Operating System

macOS

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions