2016-11-27 1 views
1

ws-trust 사양을 준수하여 보안 토큰 (samel2.0)을 얻었습니다. 계속할 수없는 일이 토큰을 사용하여 내 서비스 (CRM 2016 웹 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 요청 당 헤더를 포함시켜야합니다.

관련 문제