# ADAL within a Datasource Plugin

**URL:** <https://community.grafana.com/t/adal-within-a-datasource-plugin/3435>\
**Category:** Grafana Plugin Development\
**Created:** [October 25, 2017, 11:18am UTC](https://community.grafana.com/t/adal-within-a-datasource-plugin/3435 "2017-10-25T11:18:53Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![tgg](https://avatars.discourse-cdn.com/v4/letter/t/34f0e0/32.png) [@tgg](https://community.grafana.com/u/tgg)\
**Post date:** [November 30, 2017, 10:37am UTC](https://community.grafana.com/t/adal-within-a-datasource-plugin/3435/11 "2017-11-30T10:37:09Z")

</div>

Is it possible for the url to be dynamic from configuration? It doesn’t appear to be working.

“routes”: [{  
“path”: “mycustompath”,  
“method”: “GET”,  
**“url”: “https://{{ .JsonData.customUrl }}”,**  
“tokenAuth”: {  
“url”: “[https://login.windows.net/](https://login.windows.net/){{ .JsonData.tenant }}/oauth2/token”,  
“params”: {  
“grant\_type”: “client\_credentials”,  
“client\_id”: “{{ .JsonData.applicationid }}”,  
“client\_secret”: “{{ .JsonData.applicationkey }}”,  
“resource”: “{{ .JsonData.resource }}”  
}  
}

---

_[View the full topic](https://community.grafana.com/t/adal-within-a-datasource-plugin/3435)._
