Skip to content

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

0packages dependsuggested by 1
5.3Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.3.6
  • 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 a data.frame of variable, value and source. AZURE_CLIENT_SECRET is reported as redacted rather than by value.
  • The startup banner lists AZURE_CLIENT_ID again, and marks values read from the environment separately from built-in defaults.
  • AzureCLICredential now reports the Azure CLI's own client ID rather than AZURE_CLIENT_ID; its tokens come from az account get-access-token and 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

CRAN checks
13OK
Slowest check: 1.9 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-09-08
  • ERROR12 OK, 1 ERROR2026-09-07
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.3.6
README· In the repository, left out of the releaseVignettes· In the repository, left out of the releaseNEWSYes · 100% structured · mentions 0.3.6Citation fileNoWebsiteYes · pkgdown
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

5.3K
CRAN downloads in the past year
Rank #6,824 · ~14/day · ~439/mo
Daily download trend is not available in this view yet.
55030 days
1.3K90 days
5.3K1 year
Compare downloads with other packages →
Also on182 r2u36 autocran

Repository

1Stars
0Forks
5Open issues
0Open PRs
10Releases
150Commits
2Commit identities
150 commits · Last activity 2026-09-25 · 0% stars, 30d · Default branch at 0.3.6.9000, ahead of CRAN 0.3.6 (checked 2026-10-18)
Responsiveness
How these are sampled
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

2026-06-30 · 12026-07-07 · 1
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-09-25 · The repository has a site deploy workflow

pkgdown site last built 2026-09-22

Coverage (1)
Coverage reporting (Codecov)
CRAN release process (1)
cran-comments.md
Show all practicesHide 2 practices
Automation and maintenance (1)
Dependabot
Lint, format, editor (5)
lintrLint workflowAirVS CodeRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-03-30
    Seen in the repository: CLAUDE.md
    Named in .Rbuildignore: .claude, CLAUDE.md
    Named in .gitignore: .claude
    Pull request it wrote: opened by a project member
    Commits: at least 12 crediting it in the message
Models named in its commits
  • Claude Opus 510 commits · Sep 2026
  • Claude Fable 5.11 commit · Sep 2026
  • Claude Sonnet 4.61 commit · Mar 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
14 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 4.1
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

People & History

People (1)
Author, Maintainer since 0.1.0 (2025)
Releases (10)

Pick two releases to compare their code metrics.

  • 0.3.6Latest
    record
    2026-09-22 · current release · diff ↗ ·
    added 2 exports
    az_config, get_user_token
  • 0.3.5
    record
    2026-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.4
    record
    2026-05-09 · diff ↗ ·
    removed 1 export
    set_azr_defaults
    added 3 exports
    WorkloadIdentityCredential, default_federated_token_file, default_storage_endpoint
  • 0.3.3
    record
    2026-05-04 · diff ↗ ·
    added 3 exports
    default_msal_token_cache, set_azr_defaults, write_msal_token
  • R
    R 4.6.0 released · 2026-04-24
  • 0.3.2
    record
    2026-03-30 · diff ↗
  • 0.3.1
    record
    2026-03-04 · diff ↗
  • 0.3.0
    record
    2026-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
    record
    2026-01-07 · diff ↗ ·
    added 1 export
    DefaultCredential
  • 0.2.0
    record
    2025-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.0
    record
    2025-11-04
  • R
    R 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")
Baltazar, P. (2026). azr: Credential Chain for Seamless 'OAuth 2.0' Authentication to 'Azure Services' (Version 0.3.6) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for azr version 0.3.6 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy