从WSO2 ESB

时间:2016-06-16 06:12:40

标签: wso2 wso2esb

如何从WSO2 ESB Webservices注入HTTP标头中的Authenticated User。我想将auth用户注入http标头并从后端读取。 感谢

1 个答案:

答案 0 :(得分:1)

在发送之前:端点添加以下属性。

$this->get('security.token_storage')->setToken($yourTokenToBeChecked);
$this->get('security.authorization_checker')->isGranted('show', $document);