Php 如何使用samel 2令牌通过WEB API 2016 CRM服务进行身份验证
通过遵守ws-trust规范,我成功地获得了一个安全令牌(samel2.0)。我无法继续的内容如何使用此令牌访问我的服务(CRM 2016 web api) 这是我的代币:Php 如何使用samel 2令牌通过WEB API 2016 CRM服务进行身份验证,php,authentication,adfs,ws-federation,ws-trust,Php,Authentication,Adfs,Ws Federation,Ws Trust,通过遵守ws-trust规范,我成功地获得了一个安全令牌(samel2.0)。我无法继续的内容如何使用此令牌访问我的服务(CRM 2016 web api) 这是我的代币: <encryptedassertion xmlns="urn:oasis:names:tc:SAML:2.0:assertion"> <xenc:encrypteddata xmlns:xenc="http://www.w3.org/2001/04/xmle..." type="http://www.w3.
<encryptedassertion xmlns="urn:oasis:names:tc:SAML:2.0:assertion">
<xenc:encrypteddata xmlns:xenc="http://www.w3.org/2001/04/xmle..." type="http://www.w3.org/2001/04/xmle...">
<xenc:encryptionmethod algorithm="http://www.w3.org/2001/04/xmle..."/>
<keyinfo xmlns="http://www.w3.org/2000/09/xmld...">
<e:encryptedkey xmlns:e="http://www.w3.org/2001/04/xmle...">
<e:encryptionmethod algorithm="http://www.w3.org/2001/04/xmle...">
<digestmethod algorithm="http://www.w3.org/2000/09/xmld..."/>
</e:encryptionmethod>
<keyinfo>
<ds:x509data xmlns:ds="http://www.w3.org/2000/09/xmld...">
<ds:x509issuerserial>
<ds:x509issuername>CN=*.crm.maxtrain.com</ds:x509issuername>
<ds:x509serialnumber>...</ds:x509serialnumber>
</ds:x509issuerserial>
</ds:x509data>
</keyinfo>
<e:cipherdata>
<e:ciphervalue>...</e:ciphervalue>
</e:cipherdata>
</e:encryptedkey>
</keyinfo>
<xenc:cipherdata>
<xenc:ciphervalue>...</xenc:ciphervalue>
</xenc:cipherdata>
</xenc:encrypteddata>
</encryptedassertion>
CN=*.crm.maxtrain.com
...
...
...
任何帮助都将不胜感激。对于我来说,我只是将令牌作为承载令牌添加到HTTP头消息中,格式如下
Authorization:Bearer
。因此,每个http请求都必须包含该头。对于我来说,我只是将令牌添加为承载令牌,并使用http头消息,格式如下Authorization:Bearer
。因此,每个http请求都必须包含该头