awslabs / awslabs/agentcore-samples

03-integrations - [Bug] EntraID_and_3LO_Outbound_for_Tools-Failed to retrieve token

Open
#656 1 comment 0 reactions 0 assignees View on GitHub
01-tutorials 03-AgentCore-identity
Dominant language
Python
Stars
3.4k
Forks
1.3k
Avg merge
1d 22h
Merged PRs (30d)
30

Description

The bug occurs in below sample notebook.
https://github.com/awslabs/amazon-bedrock-agentcore-samples/blob/main/03-integrations/IDP-examples/EntraID/Step_by_Step_Entra_ID_with_AgentCore_Gateway.ipynb

**Bug Description**
After executing `id_token = need_access_token(access_token="")` and successfully logging into EntraID with the correct credentials, the browser displays the following error:
```
{
"fieldList": null,
"message": "Failed to retrieve token",
"reason": null
}
```

Contributor guide

Open the contributing guide

Research direction

Start with 03-integrations/IDP-examples/EntraID/Step_by_Step_Entra_ID_with_AgentCore_Gateway.ipynb and reproduce the `need_access_token(access_token="")` call after signing in to EntraID. Trace why the notebook displays "Failed to retrieve token"; done means the sample retrieves the token successfully with valid credentials.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.