Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Cannot pass scope to request to azure to get tokens

Open
#70 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
azure, r

Research direction

Start at the get_azure_token entry point and trace how the resource argument is converted into the Azure authorization request. Verify the request includes scope values such as "offline_access" and confirm the resulting flow can obtain a refresh token.

Written by the indexing model from the issue text.

Description

Hello,

I have noticed that scope, that is passed through resources, is ignored
So when following command is executed,

TOKEN_azure <- get_azure_token(
                          resource = c("openid", "offline_access"),
                          tenant = tenant,
                          app = client_id,
                          password = client_secret,
                          auth_type="authorization_code",
                          authorize_args=list(redirect_uri=redirect),
                          version=2,
                          use_cache=TRUE,
                          auth_code=code
)

The request to azure, that is sent by library, does not contain field with scope
Therefore it is not possible to get refresh token, when resource contains "offline_access"

Dominant language
R
Stars
48
Forks
23
Avg merge
4h 2m
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/AzureAuth

All issues in Azure/AzureAuth

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.