Skip to contents

Creates an httr2::oauth_client() configured for Azure authentication.

Usage

default_azure_oauth_client(
  client_id = default_azure_client_id(),
  client_secret = NULL,
  name = NULL
)

Arguments

client_id

A character string specifying the client ID. Defaults to default_azure_client_id().

client_secret

A character string specifying the client secret. Defaults to NULL.

name

A character string specifying the client name. Defaults to NULL.

Value

An httr2::oauth_client() object

Examples

client <- default_azure_oauth_client()
client <- default_azure_oauth_client(
  client_id = "my-client-id",
  client_secret = "my-secret"
)