Skip to content

Commit d769e8a

Browse files
committed
fix groups in azure
1 parent 9448517 commit d769e8a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Access/TokenProcessorsOpaque.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,10 @@ bool AzureTokenProcessor::resolveAndValidate(const TokenCredentials & credential
224224
}
225225

226226
auto group_data = group.get<picojson::object>();
227-
String group_name = getValueByKey(group_data, "id");
227+
if (!group_data.contains("displayName"))
228+
continue;
229+
230+
String group_name = getValueByKey(group_data, "displayName");
228231
external_groups_names.insert(group_name);
229232
LOG_TRACE(getLogger("TokenAuthentication"), "{}: User {}: new external group {}", processor_name, credentials.getUserName(), group_name);
230233
}

0 commit comments

Comments
 (0)