2016-11-27 11 views
1

ws-trust仕様に準拠してセキュリティトークン(samel2.0)を取得しました。続けることができないものこのトークンを使用してサービスにアクセスするにはどうすればいいですか(CRM 2016 Web API)すべてのヘルプは理解されるであろうsamel 2トークンを使用してWEB API 2016 CRMサービスで認証する方法

<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> 

は、ここで私が持っているトークンです。

答えて

0

単純に私はこのフォーマットのようなHTTPヘッダーメッセージを持つベアラートークンとしてトークンを追加しました。Authorization: Bearer <xml token>したがって、httpリクエストごとに、そのヘッダを含める必要があります。

関連する問題