in saml-authentication-server/src/main/java/jetbrains/buildServer/auth/saml/plugin/utils/SpelExpressionContext.java [19:35]
public SpelExpressionContext(Auth auth) {
Map<String, Object> attributes = new HashMap<>();
for (var entry : auth.getAttributes().entrySet()) {
var name = entry.getKey();
var value = entry.getValue() == null || entry.getValue().size() == 0
? ""
: entry.getValue().size() == 1 ? entry.getValue().get(0) : entry.getValue();
attributes.put(name, value);
}
attributes.put("nameid", auth.getNameId());
attributes.put("lastassertionid", auth.getLastAssertionId());
evaluationContext = new SimpleEvaluationContext.Builder(new MapAccessor()).withRootObject(attributes).build();
}