Use SimpleJson with OAuth

I am trying out Grafana to see if I can switch to it for my visualization needs. I wanted to create a datasource that points to a REST API. It looks like SimpleJson is the way to go. That said, this rest API is behind OAuth and thus requires a client id, client secret, token URL, etc. I see that Grafana supports Oauth as an authentication provided for Grafana itself, but is it also available for datasources like SimpleJson. If not, is there a way to enhance these plugins to support this? Any hints on where to start?

Thanks!