Skip to content

Commit a0da997

Browse files
include profile for specific claims in idtoken. Fixes microsoft#143463
1 parent 39cc1e1 commit a0da997

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

extensions/microsoft-authentication/src/AADHelper.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ export class AzureActiveDirectoryService {
196196
if (!modifiedScopes.includes('email')) {
197197
modifiedScopes.push('email');
198198
}
199+
if (!modifiedScopes.includes('profile')) {
200+
modifiedScopes.push('profile');
201+
}
199202

200203
let orderedScopes = modifiedScopes.sort().join(' ');
201204
Logger.info(`Getting sessions for the following scopes: ${orderedScopes}`);
@@ -231,6 +234,9 @@ export class AzureActiveDirectoryService {
231234
if (!scopes.includes('email')) {
232235
scopes.push('email');
233236
}
237+
if (!scopes.includes('profile')) {
238+
scopes.push('profile');
239+
}
234240
scopes = scopes.sort();
235241
const scopeData: IScopeData = {
236242
scopes,

0 commit comments

Comments
 (0)