-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Describe:
Following the "Get Your JWT Bearer Token" steps in the README and executing the following commands to obtain the JWT Bearer Token failed:
az account get-access-token --resource YOUR-ENTRA-APP-CLIENT-ID --query accessToken -o tsvaz account get-access-token --resource "api://YOUR-ENTRA-APP-CLIENT-ID" --query accessToken -o tsv
In the Azure Portal's App Registration → Expose an API page, only the Application ID URI was set, but the following crucial configurations were missing:
- Add a scope
- Authorized client applications: A client application (e.g., Microsoft Azure CLI) needs to be added and authorized with the corresponding scope.
After completing "Add a scope" and "Authorized client applications," obtaining the token using az succeeded.
Repro Steps:
- Run
git clone https://github.com/AzureCosmosDB/MCPToolKit.gitandcd MCPToolKit. - Deploy Infrastructure via Azure Developer CLI (azd up).
- Run
.\scripts\Deploy-Cosmos-MCP-Toolkit.ps1 -ResourceGroup "YOUR-RESOURCE-GROUP" -EntraAppName "My Custom MCP App". - Run
az account get-access-token --resource YOUR-ENTRA-APP-CLIENT-ID --query accessToken -o tsvandaz account get-access-token --resource "api://YOUR-ENTRA-APP-CLIENT-ID" --query accessToken -o tsv.
Environment:
- OS: Windows
Expected behavior:
The JWT Bearer Token was successfully retrieved via the az command.
@sajeetharan and @hemarina for notification.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels