Skip to content

Commit 7a4d44f

Browse files
committed
feat: add response attribute prefix option
1 parent f0609eb commit 7a4d44f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup/sdk/proxy.tpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@
9191
// dearray values
9292
$data = array();
9393
foreach($spidsdk->getAttributes() as $attribute=>$value) {
94-
$data[$attribute] = $value[0];
94+
$response_attributes_prefix = $proxy_config['clients'][$client_id]['response_attributes_prefix'];
95+
$response_attributes_prefix = $response_attributes_prefix? $response_attributes_prefix : '';
96+
$data[$response_attributes_prefix.$attribute] = $value[0];
9597
}
9698

9799
$client_config = $proxy_config['clients'][$client_id];

0 commit comments

Comments
 (0)