OHDSI / ROhdsiWebApi

An R package for interfacing with a WebAPI instance
https://ohdsi.github.io/ROhdsiWebApi
10 stars 17 forks source link

Some deployments require auth header to get info. #251

Open ablack3 opened 2 years ago

ablack3 commented 2 years ago

Some deployment require a bearer token to get data from the {baseUrl}/info endpoint while some do not. .checkBaseUrl() is called by lots of ROhdsiWebApi functions and requires this endpoint to work.

I'd like to make a small change that would pass the bearer token when using this endpoint if the bearer token exists. If no token exists then the behavior should be unchanged.

I don't think this will break any current functionality but will allow ROhdsiWebApi to be used in environments where {baseUrl}/info requires a bearer token.