mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Use Preferred username over email as 'user' property (#22288)
This commit is contained in:
@@ -719,8 +719,8 @@ export abstract class AzureAuth implements vscode.Disposable {
|
|||||||
accountIssuer = Constants.AccountIssuer.Msft;
|
accountIssuer = Constants.AccountIssuer.Msft;
|
||||||
}
|
}
|
||||||
|
|
||||||
const name = tokenClaims.name ?? tokenClaims.email ?? tokenClaims.unique_name ?? tokenClaims.preferred_username;
|
const name = tokenClaims.name ?? tokenClaims.preferred_username ?? tokenClaims.email ?? tokenClaims.unique_name;
|
||||||
const email = tokenClaims.email ?? tokenClaims.unique_name ?? tokenClaims.preferred_username;
|
const email = tokenClaims.preferred_username ?? tokenClaims.email ?? tokenClaims.unique_name;
|
||||||
|
|
||||||
let owningTenant: Tenant = this.commonTenant; // default to common tenant
|
let owningTenant: Tenant = this.commonTenant; // default to common tenant
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user