Closed skorov closed 10 months ago
In some cases, Get-UserPRTToken will retrieve the x-ms-DeviceCredential cookie/token instead of the expected x-ms-RefreshTokenCredential token.
Get-UserPRTToken
x-ms-DeviceCredential
x-ms-RefreshTokenCredential
This causes the following documented workflow to fail: https://aadinternals.com/aadinternals/#get-aadintuserprttoken
Digging into the issue a bit more...
The fix here is to find the correct index of x-ms-RefreshTokenCredential and return that token. With the fix, the above workflow works. 🙂
Please go ahead and make any corrections I might have missed.
Cheers!
In some cases,
Get-UserPRTToken
will retrieve thex-ms-DeviceCredential
cookie/token instead of the expectedx-ms-RefreshTokenCredential
token.This causes the following documented workflow to fail: https://aadinternals.com/aadinternals/#get-aadintuserprttoken
Digging into the issue a bit more...
The fix here is to find the correct index of
x-ms-RefreshTokenCredential
and return that token. With the fix, the above workflow works. 🙂Please go ahead and make any corrections I might have missed.
Cheers!