mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
initial commit, added more relevant error codes (#24005)
This commit is contained in:
@@ -305,7 +305,11 @@ export abstract class AzureAuth implements vscode.Disposable {
|
|||||||
private accountNeedsRefresh(error: AuthError): boolean {
|
private accountNeedsRefresh(error: AuthError): boolean {
|
||||||
return error instanceof InteractionRequiredAuthError
|
return error instanceof InteractionRequiredAuthError
|
||||||
|| error.errorMessage.includes(Constants.AADSTS70043)
|
|| error.errorMessage.includes(Constants.AADSTS70043)
|
||||||
|| error.errorMessage.includes(Constants.AADSTS50173);
|
|| error.errorMessage.includes(Constants.AADSTS50173)
|
||||||
|
|| error.errorMessage.includes(Constants.AADSTS50078)
|
||||||
|
|| error.errorMessage.includes(Constants.AADSTS50085)
|
||||||
|
|| error.errorMessage.includes(Constants.AADSTS50089)
|
||||||
|
|| error.errorMessage.includes(Constants.AADSTS700084);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -96,6 +96,25 @@ export const AADSTS70043 = 'AADSTS70043';
|
|||||||
* require reauthentication. Have the user sign in again.
|
* require reauthentication. Have the user sign in again.
|
||||||
*/
|
*/
|
||||||
export const AADSTS50173 = 'AADSTS50173';
|
export const AADSTS50173 = 'AADSTS50173';
|
||||||
|
/**
|
||||||
|
* UserStrongAuthExpired- Presented multi-factor authentication has expired due to policies configured by your administrator,
|
||||||
|
* you must refresh your multi-factor authentication to access '{resource}'.
|
||||||
|
*/
|
||||||
|
export const AADSTS50078 = 'AADSTS50078';
|
||||||
|
/**
|
||||||
|
* Refresh token needs social IDP login. Have user try signing-in again with username -password
|
||||||
|
*/
|
||||||
|
export const AADSTS50085 = 'AADSTS50085';
|
||||||
|
/**
|
||||||
|
* Authentication failed due to flow token expired. Expected - auth codes, refresh tokens, and sessions expire over time
|
||||||
|
* or are revoked by the user or an admin. The app will request a new login from the user.
|
||||||
|
*/
|
||||||
|
export const AADSTS50089 = 'AADSTS50089';
|
||||||
|
/**
|
||||||
|
* The refresh token was issued to a single page app (SPA), and therefore has a fixed, limited lifetime of {time}, which can't be extended.
|
||||||
|
* It is now expired and a new sign in request must be sent by the SPA to the sign in page. The token was issued on {issueDate}.
|
||||||
|
*/
|
||||||
|
export const AADSTS700084 = 'AADSTS700084';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* multiple_matching_tokens error can occur in scenarios when users try to run ADS as different users, reference issue:
|
* multiple_matching_tokens error can occur in scenarios when users try to run ADS as different users, reference issue:
|
||||||
|
|||||||
Reference in New Issue
Block a user