Azure / Azure/AzureAuth

Cannot pass scope to request to azure to get tokens

Open
#70 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
R
Stars
48
Forks
23
Avg merge
4h 2m
Merged PRs (30d)
3

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"

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.