Skip to content

Comments

Add an as_azure_token() for compatibility with AzureR packages#5

Open
atheriel wants to merge 1 commit intomainfrom
aj-azure-token
Open

Add an as_azure_token() for compatibility with AzureR packages#5
atheriel wants to merge 1 commit intomainfrom
aj-azure-token

Conversation

@atheriel
Copy link
Collaborator

This commit introduces a standalone as_azure_token() that converts the httr2 format to one that works out of the box with AzureR packages. For example:

token <- NULL
if (has_viewer_token()) {
  token <- as_azure_token(connect_viewer_token())
}
Microsoft365R::list_sharepoint_sites(token = token)

Fixes #4.

@atheriel atheriel force-pushed the aj-azure-token branch 2 times, most recently from 54b4a50 to 1e3f594 Compare August 21, 2025 15:04
This commit introduces a standalone `as_azure_token()` that converts
the httr2 format to one that works out of the box with AzureR packages.
For example:

    token <- NULL
    if (has_viewer_token()) {
      token <- as_azure_token(connect_viewer_token())
    }
    Microsoft365R::list_sharepoint_sites(token = token)

Fixes #4.

Signed-off-by: Aaron Jacobs <aaron.jacobs@posit.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a helper to return a AzureToken object to enable use of Microsoft365R and AzureGraph packages

1 participant