R/managed_token.R

Defines functions get_managed_token

Documented in get_managed_token

#' @rdname get_azure_token
#' @export
get_managed_token <- function(resource, token_args=list(), use_cache=NULL)
{
    aad_host <- Sys.getenv("MSI_ENDPOINT", "http://169.254.169.254/metadata/identity/oauth2")
    AzureTokenManaged$new(resource, aad_host, token_args=token_args, use_cache=use_cache)
}

Try the AzureAuth package in your browser

Any scripts or data that you put into this service are public.

AzureAuth documentation built on Sept. 13, 2021, 5:06 p.m.