From 2c3d41b7e5458fc9012a9a608390600e6075045e Mon Sep 17 00:00:00 2001 From: shahramk64 Date: Mon, 16 Sep 2024 16:34:02 +1000 Subject: [PATCH] docs: update how to fetch aad access token (#777) --- docs/AAD-OAuth.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/AAD-OAuth.md b/docs/AAD-OAuth.md index 9d254fba..a3f0ad6f 100644 --- a/docs/AAD-OAuth.md +++ b/docs/AAD-OAuth.md @@ -159,7 +159,7 @@ In this example, we'll try to obtain an ACR refresh token from existing AAD toke 2. The AAD tenant identifier associated to the credentials, which here we'll take to be `409520d4-8100-4d1d-ad47-72432ddcc120`. 3. Valid AAD access token credential with access to the aforementioned container registry. -The AAD access token can be obtained from the Azure CLI. After running `az login` check file `$HOME/.azure/accessTokens.json` (`%HOMEDRIVE%%HOMEPATH%\.azure\accessTokens.json` in Windows) for the token values. +The AAD access token can be obtained from the Azure CLI. After running `az login` check file `$HOME/.azure/msal_token_cache.json` (`%HOMEDRIVE%%HOMEPATH%\.azure\msal_token_cache.json` in Windows) for the token values. Alternatively, run `az account get-access-token --subscription ""` to find the AAD access token. We'll now call `POST /oauth2/exchange` to exchange the AAD tokens for an ACR refresh token. Here's how such a call looks when done via `curl`: ```bash