Cannot pass scope to request to azure to get tokens
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
- Domain
- authentication
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/AzureAuth
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 20/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
Similar issues
-
Difficulty 2/5 Half a day Newbie friendliness 78/100
ThinkR-open/datadiff#59 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tidymodels/parsnip#1444 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
priority: should UX
Difficulty 2/5 1-3 hours Newbie friendliness 72/100