oauth_service_token_azure: Generate OAuth2.0 token for Azure service account.

Description Usage Arguments Details Value Examples

View source: R/oauth-token.R

Description

As described in httr::oauth_service_token(), service accounts provide a way of using OAuth2 without user intervention.

Usage

1
2
oauth_service_token_azure(tenant_id, application_id, application_secret,
  resource = "https://management.core.windows.net/")

Arguments

tenant_id

character, tenant id issued by Azure

application_id

character, application id issued by Azure

application_secret

character, key issued by the account

resource

character, resource requested

Details

At some point in the near future, describe how to make a Azure web-app.

Value

A TokenServiceAccountAzure reference class (RC) object.

Examples

1
2
3
4
5
6
7
8
## Not run: 
  oauth_service_token_azure(
    tenant_id = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
    application_id = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
    application_secret = "foofoofoofoofoofoofoofoofooooo"
  )

## End(Not run)

ijlyttle/AzureOAuth documentation built on May 5, 2019, 11:09 p.m.