d-velop / grafana-odata-datasource

This is a Grafana data source plugin that allows you to query and visualize data from OData V4 compatible data sources.
Apache License 2.0
8 stars 2 forks source link

Using Azure Active Directory OAuth 2.0 #1

Open senses0 opened 1 year ago

senses0 commented 1 year ago

Hi,

I wanted to try this plugin to connect to Intune Data Warehouse which uses Odata 4.0. https://learn.microsoft.com/en-us/mem/intune/developer/reports-nav-intune-data-warehouse

Intune Data Warehouse uses OAuth 2.0 for authentication and authorization, which means a token should be acquired (from a different login endpoint) before making the actual OData API call.

I was wondering if this is possible with the current release of the plugin and if not, is this something planned for future versions of the plugin?

Thanks

carroe commented 10 months ago

Hi,

we haven't used the plugin in the context of Intune Data Warehouse yet and we lack experience with it.

Best regards, Carsten

KevinHunter12 commented 1 week ago

Could oAuth 2 be added ? I tried with Foward OAuth but it didn’t work but adding the header did, however the problem is that the token has a short expiration time and I have to keep changing it. I use client credentials (client Id and secret) Thanks