Skip to content

DevExpress-Examples/reporting-winforms-provide-authentication-to-access-json-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reporting for WinForms - How to Provide Authentication to Access JSON Data

This example demonstrates how to provide a report's JSON data source with authentication parameters at runtime. You can see two approaches to provide authentication to the specified Web Service Endpoint:

  • Approach 1
    You can use a connection string to create a JsonDataSource object. The connection string can include authentication parameters.
    In this approach, only the JsonDataSource's connection name is serialized to the report's definition. The JsonDataSource's JsonSource property is not specified.

  • Approach 2
    You can use the UriJsonSource object to specify authentication parameters. Assign this object to the JsonDataSource's JsonSource property.
    In this approach, authentication parameters are serialized to the report's definition together with the JsonDataSource's UriJsonSource object.

Files to Review

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)