Azure / Azure/AzureAuth

Improve documentation for password protected pem files

Open
#62 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 a a registered app on an enterprise account.
My Dev team uses both R and Python.
I'm trying to adapt the Python code to use AzureAuth, but I'm hitting a wall with documentation and error messages.

Variables I have:
- Tenant ID
- Client ID (app id)
- Thumbprint
- pem file
- password to unlock pem file

When I try the code below (trying both the absolute file name and the path to the file) I get this error:
`Error in read_input(file) : file must be connection, raw vector or file path`

It's also unclear where to enter the `pem` **password** or the **thumbprint**.

Could you please provide a vignette for a password protected pem file and thumbprint?

```

resource <-"https://graph.microsoft.com/.default"
cert_path <- "C:/Users//Documents/repo_work/api_r_demo/CHCAnalyticsAutomation.pem"

get_azure_token(resource,
creds$TENANT_ID,
creds$CLIENT_ID,
certificate=cert_path,
auth_type="client_credentials")
```

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.