Credential Chain for Seamless 'OAuth 2.0' Authentication to 'Azure Services'
Overview
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.
- Added
get_user_token(), which authenticates the person signed in on this machine rather than the host's service identity.get_token()tries workload and managed identity ahead of the Azure CLI, so on a host configured for a service identity it returns the workload's token even when a user is at the console. - Added
az_config(), which reports the Azure environment variables used during credential discovery as adata.frameofvariable,valueandsource.AZURE_CLIENT_SECRETis reported as redacted rather than by value. - The startup banner lists
AZURE_CLIENT_IDagain, and marks values read from the environment separately from built-in defaults. AzureCLICredentialnow reports the Azure CLI's own client ID rather thanAZURE_CLIENT_ID; its tokens come fromaz account get-access-tokenand are always issued to that client.DefaultCredential$new(verbose = TRUE)now produces the full credential-chain trace, not only the resolved provider.- Fixed
format_json_body()printing a positional key such as"4"in place of the...placeholder when truncating a named request body, and mangling every backslash in a logged body, so Windows paths, escaped quotes and newlines survive.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 71 (7 internal)includes a package overview page
- Examples that run
- 57%26 run in a plain check · 20 never run
- Exported functions with examples
- 72%
- Documented parameters
- 100%
- Return-value docs
- 78%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 89%
- Median days to close, 50 most recently updated closed issues
- 6
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Releases over time
Issues over time
PRs over time
Commits over time
13 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/pedrobtz/azr on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-09-25 · The repository has a site deploy workflow
pkgdown site last built 2026-09-22
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-03-30Seen in the repository: CLAUDE.mdNamed in .Rbuildignore: .claude, CLAUDE.mdNamed in .gitignore: .claudePull request it wrote: opened by a project memberCommits: at least 12 crediting it in the message
- Claude Opus 510 commits · Sep 2026
- Claude Fable 5.11 commit · Sep 2026
- Claude Sonnet 4.61 commit · Mar 2026
Dependencies
Installing azr adds 15 packages (11 with compiled code, 6.3 MB of source tarballs). Heaviest: openssl 1.1 MB, jsonlite 1.0 MB, vctrs 1.0 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.3.6Latest
- 0.3.52026-06-26 · diff ↗ ·
added 17 exports
ManagedIdentityCredential, api_log_analytics_client, azr_catalog, azr_catalog_read, azr_catalog_write, azr_dataset, azr_dataset_from_uri, azr_dataset_manifest, azr_dataset_uri, azr_logs_client, azr_options, azr_resolve_dataset, azure_spark_storage_conf, default_azure_cli_client_id, default_graph_endpoint, default_log_analytics_endpoint, parse_storage_path - 0.3.42026-05-09 · diff ↗ ·
removed 1 export
set_azr_defaultsadded 3 exports
WorkloadIdentityCredential, default_federated_token_file, default_storage_endpoint - 0.3.3
- RR 4.6.0 released · 2026-04-24
- 0.3.22026-03-30 · diff ↗
- 0.3.12026-03-04 · diff ↗
- 0.3.02026-02-17 · diff ↗ ·
added 7 exports
CachedTokenCredential, RefreshTokenCredential, api_storage_client, az_cli_get_cached_token, azr_storage_client, cached_token_credential_chain, default_refresh_token - 0.2.1
- 0.2.02025-12-04 · diff ↗ ·
added 17 exports
api_client, api_resource, api_service, az_cli_account_show, az_cli_get_token, az_cli_is_login, az_cli_login, az_cli_logout, azr_graph_client, credential_chain, default_azure_config_dir, default_credential_chain, default_non_auth, default_response_handler, get_credential_auth, get_credential_provider, is_hosted_session - 0.1.02025-11-04
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-11-04
- Total releases
- 10 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1
- Download size
- 168 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("azr")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.