Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

SharePoint 2013: Consuming OData with Basic Authentication

$
0
0

Hi,

Using Tutorials like http://blogs.perficient.com/microsoft/2012/09/consuming-odata-sources-in-sharepoint-2013-app-step-by-step/, I tried to consume an OData Source with SharePoint 2013. Without Authentication, no problem, but with an OData Source with Basic Authentication I’m searching a way to define/configure the authentication method inside the app.
The only way I could find was in the BDC Model (.etc file), where I find the ODataServiceAuthenticationMode.

<Property Name="ODataServiceUrl" Type="System.String">TOPSECRET</Property><Property Name="ODataServiceAuthenticationMode" Type="System.String">PassThrough</Property><Property Name="ODataFormat" Type="System.String">application/atom+xml</Property>

Regarding the std specs of BCS, I could use the value “Credentials” instead of “PassThrough” to use a basic authentication. Then I could define the ssoapplicationid of the Target Application inside the Secure Store Service. I ripped it from the wcf syntax, but as foreseen it didn’t work.

<Property Name="ODataServiceAuthenticationMode" Type="System.String">Credentials</Property><Property Name="SsoApplicationId" Type="System.String">TOPSECRETacc</Property>

Does anyone has a guide or documentation for the actual bdcm syntax/structure in SharePoint 2013 for modifying the xml? Or are there other options to define the basic authentication in this OData App?

Kind regards,

Tim



Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>