Learn R Programming

azr (version 0.2.0)

Credential Chain for Seamless 'OAuth 2.0' Authentication to 'Azure Services'

Description

Implements a credential chain for 'Azure OAuth 2.0' authentication based on the package 'httr2''s 'OAuth' framework. Sequentially attempts authentication methods until one succeeds. During development allows interactive browser-based flows ('Device Code' and 'Auth Code' flows) and non-interactive flow ('Client Secret') in batch mode.

Copy Link

Version

Install

install.packages('azr')

Monthly Downloads

711

Version

0.2.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Pedro Baltazar

Last Published

December 4th, 2025

Functions in azr (0.2.0)

azr-package

azr: Credential Chain for Seamless 'OAuth 2.0' Authentication to 'Azure Services'
az_cli_login

Azure CLI Device Code Login
az_cli_logout

Azure CLI Logout
azr_graph_client

Create a Microsoft Graph API Client
default_azure_client_id

Get default Azure client ID
azure_scopes

Common Azure OAuth Scopes
default_azure_client_secret

Get default Azure client secret
get_credential_auth

Get Credential Authentication Function
environment_variables

Azure Environment Variable Names
default_azure_url

Get default Azure OAuth URLs
default_azure_tenant_id

Get default Azure tenant ID
default_response_handler

Default Response Handler
is_hosted_session

Detect if running in a hosted session
default_redirect_uri

Get default OAuth redirect URI
default_azure_oauth_client

Create default Azure OAuth client
get_token_provider

Get Default Token Provider Function
default_azure_host

Get default Azure authority host
credential_chain

Create Custom Credential Chain
default_credential_chain

Create Default Credential Chain
get_token

Get Authentication Token
default_azure_config_dir

Get default Azure configuration directory
default_azure_scope

Get default Azure OAuth scope
get_credential_provider

Get Credential Provider
get_request_authorizer

Get Default Request Authorizer Function
default_non_auth

Default No Authentication
api_service

API Service Base Class
DeviceCodeCredential

Device code credential authentication
ClientSecretCredential

Client secret credential authentication
AuthCodeCredential

Authorization code credential authentication
InteractiveCredential

Interactive credential base class
az_cli_account_show

Show Azure CLI Account Information
api_client

Azure API Client
AzureCLICredential

Azure CLI credential authentication
api_resource

Azure API Resource
api_graph_resource

Microsoft Graph API Resource
azure_client

Azure Default Client Configuration
azure_authority_hosts

Azure Authority Host URLs
az_cli_get_token

Get Access Token from Azure CLI
az_cli_is_login

Check if User is Logged in to Azure CLI