Php HWIOAuthBundle-Instagram签名

Php HWIOAuthBundle-Instagram签名,php,symfony,instagram,instagram-api,hwioauthbundle,Php,Symfony,Instagram,Instagram Api,Hwioauthbundle,Instagram具有安全性验证功能,您可以打开或关闭它,我们可以使用SHA256打开它,它是一个HMAC 这是公式 Token to sign: endpoint|key1=value1|key2=value2|... Parameter name: sig Parameter value: signed token with your Client Secret using the SHA256 hash algorithm 我在HWIOAuthBundle->GenericOAuth2R

Instagram具有安全性验证功能,您可以打开或关闭它,我们可以使用
SHA256
打开它,它是一个
HMAC

这是公式

Token to sign: endpoint|key1=value1|key2=value2|...
Parameter name: sig
Parameter value: signed token with your Client Secret using the SHA256 hash algorithm
我在
HWIOAuthBundle->GenericOAuth2ResourceOwner->getUserInformation

$sig = "/users/self";
$sig .= "|" . $this->options['attr_name'] . "=" . $accessToken['access_token'];
$sig = hash_hmac('sha256', $sig, $this->options['client_secret'], false);
Instagram响应良好,工作正常,但是
HWIOAuthBundle
code失败,出现此警告,因为这不是从配置传递的参数,我强制执行
sig=(签名)
param

警告:会话\重新生成\ id():无法重新生成会话id-标头已发送

有人有线索吗


更新 划破它,代码就成功了。

但是,必须有一个更简单的方法,对吗?

来自的人只是将我的评论标记为待修复的Bug。来自的人只是将我的评论标记为待修复的Bug。来自的人只是将我的评论标记为待修复的Bug。