Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you are trusting tokens that were created for MVC or SharePoint, then your webservice is part of that "realm" so it is ok to add that realm as a valid one. The audience uri validation can be changed from config or code. Are you using WCF? Are you using WIF with WCF?</p> <pre><code>&lt;audienceUris&gt; &lt;add value="your:sharepoint-and-mvc:realm" /&gt; &lt;add value="http://webservice" /&gt; &lt;/audienceUris&gt; </code></pre> <p><strong>edit</strong>: reading your question again and the clarification you made, you will have issues with SharePoint, since they have an STS that will do some transformations to the original ACS token and sign it again with its own keys. Meaning that you don't have access to the original ACS token. I see two options here:</p> <ul> <li>Create your own token before consuming the service (you can use SimpleWebTokens or JsonWebTokens which are more simple to implement and a shared symmetric key).</li> <li>Configure your service to trust SAML tokens signed by ACS or SharePoint key as well the audience URIs. </li> </ul> <p>Since this is a REST service I would go with option 1, transform the original token to a JSON web token, resign with your own key and attach the token to the Authorization header.</p> <p>Here you have an implementation of JsonWebTokens (JWT) <a href="http://nuget.org/packages/JWT" rel="nofollow">http://nuget.org/packages/JWT</a></p> <p>Here is an implementation of SimpleWebTokens <a href="http://nuget.org/packages/netfx-Microsoft.IdentityModel.Swt" rel="nofollow">http://nuget.org/packages/netfx-Microsoft.IdentityModel.Swt</a></p> <p>You can use JWT also with asymmetric crypto with x509 certs (it is not implemented in that package though)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload