awslabs / awslabs/agentcore-samples
03-integrations - [Bug] EntraID_and_3LO_Outbound_for_Tools-Failed to retrieve token
- 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
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