Learn R Programming

azr (version 0.2.0)

default_azure_url: Get default Azure OAuth URLs

Description

Constructs Azure OAuth 2.0 endpoint URLs for a given tenant and authority host.

Usage

default_azure_url(
  endpoint = NULL,
  oauth_host = default_azure_host(),
  tenant_id = default_azure_tenant_id()
)

Value

If endpoint is specified, returns a character string with the URL. If endpoint is NULL, returns a named list of all endpoint URLs.

Arguments

endpoint

A character string specifying which endpoint URL to return. Must be one of: "authorize", "token", or "devicecode". If NULL (default), returns a list of all endpoint URLs.

oauth_host

A character string specifying the Azure authority host. Defaults to default_azure_host().

tenant_id

A character string specifying the tenant ID. Defaults to default_azure_tenant_id().

Examples

Run this code
# Get all URLs
default_azure_url()

# Get specific endpoint
default_azure_url("token")

# Custom tenant
default_azure_url("authorize", tenant_id = "my-tenant-id")

Run the code above in your browser using DataLab