Learn R Programming

azr (version 0.2.0)

default_azure_oauth_client: Create default Azure OAuth client

Description

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
)

Value

An httr2::oauth_client() object

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.

Examples

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

Run the code above in your browser using DataLab