mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
include profile for specific claims in idtoken. Fixes #143463
This commit is contained in:
@@ -196,6 +196,9 @@ export class AzureActiveDirectoryService {
|
||||
if (!modifiedScopes.includes('email')) {
|
||||
modifiedScopes.push('email');
|
||||
}
|
||||
if (!modifiedScopes.includes('profile')) {
|
||||
modifiedScopes.push('profile');
|
||||
}
|
||||
|
||||
let orderedScopes = modifiedScopes.sort().join(' ');
|
||||
Logger.info(`Getting sessions for the following scopes: ${orderedScopes}`);
|
||||
@@ -231,6 +234,9 @@ export class AzureActiveDirectoryService {
|
||||
if (!scopes.includes('email')) {
|
||||
scopes.push('email');
|
||||
}
|
||||
if (!scopes.includes('profile')) {
|
||||
scopes.push('profile');
|
||||
}
|
||||
scopes = scopes.sort();
|
||||
const scopeData: IScopeData = {
|
||||
scopes,
|
||||
|
||||
Reference in New Issue
Block a user