You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
The refresh token should be persisted so that ARM request can still work.
What you see instead
Output (prettified):
{
"92bebeb6-c875-4f40-b2d2-f6324929f04a.54826b22-38d6-4fb2-bad9-b7b93a3e9c5a-login.microsoftonline.com-refreshtoken-04b07795-8ddb-461a-bbee-02f9e1bf7b46--https://management.azure.com/user_impersonation https://management.azure.com/.default": {
"credential_type": "RefreshToken",
"secret": "...",
"home_account_id": "92bebeb6-c875-4f40-b2d2-f6324929f04a.54826b22-38d6-4fb2-bad9-b7b93a3e9c5a",
"environment": "login.microsoftonline.com",
"client_id": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
"target": "https://management.azure.com/user_impersonation https://management.azure.com/.default",
"family_id": "1"
}
}
{
"error": "invalid_grant",
"error_description": "AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access 'ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0'.\r\nTrace ID: 3ddb15bc-d1d1-4d67-9b9f-77c0beb99000\r\nCorrelation ID: d8e4d35b-419e-4b25-8152-c833f497c38e\r\nTimestamp: 2021-03-01 11:21:13Z",
"error_codes": [
50076
],
"timestamp": "2021-03-01 11:21:13Z",
"trace_id": "3ddb15bc-d1d1-4d67-9b9f-77c0beb99000",
"correlation_id": "d8e4d35b-419e-4b25-8152-c833f497c38e",
"error_uri": "https://login.microsoftonline.com/error?code=50076",
"suberror": "basic_action",
"classification": "basic_action"
}
{}
The MSAL Python version you are using
1.9.0
Additional context invalid_grant in this case only means the RT is invalid for acquiring an AT for VM SSH, but doesn't necessarily mean it can't be used to acquire an AT for ARM.
Use Conditional Access to configure MFA requirement for VM SSH:
The text was updated successfully, but these errors were encountered:
Describe the bug
MSAL shouldn't remove Refresh Token upon receiving
invalid_grant
.To Reproduce
When
https://management.azure.com/.default
) doesn't require MFAhttps://pas.windows.net/CheckMyAccess/Linux/.default
) requires MFAThis script will cause the RT of ARM to be removed, making subsequence ARM requests fail:
Expected behavior
The refresh token should be persisted so that ARM request can still work.
What you see instead
Output (prettified):
The MSAL Python version you are using
1.9.0
Additional context
invalid_grant
in this case only means the RT is invalid for acquiring an AT for VM SSH, but doesn't necessarily mean it can't be used to acquire an AT for ARM.Use Conditional Access to configure MFA requirement for VM SSH:
The text was updated successfully, but these errors were encountered: