Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OData using token based authentication #5

Open
abdul1224 opened this issue Jun 7, 2018 · 2 comments
Open

OData using token based authentication #5

abdul1224 opened this issue Jun 7, 2018 · 2 comments

Comments

@abdul1224
Copy link

I am using 'DataPresenter.DataSources.OData' project for binding Xamdatagrid using ODataDataSource, how can we use endpoints(API) with Authentications (Basic / Token based), as there are no properties defined in the sample to pass the header information for API?

@gmurray81
Copy link
Member

Hi,
Yeah, these reference data adapters aren't super configurable as of yet. The intent was that, until we discovered all the most meaningful configuration points that you could just modify the code to suit your purposes, which is why we made these open source.

However, we did mean to have a basic configuration hook whereby we'd raise an event to let you configure the underlying Odata client at the appropriate time. Looks like this isn't there yet though. We can try to get this in there soon, if think such a thing would suit your purposes? In the meantime, you could modify the client configuration logic in a fork, for your purposes.

@gmurray81
Copy link
Member

For reference, the OdataClient is configured here:

_client = new ODataClient(new ODataClientSettings(_baseUri)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants