Skip to content

Commit f93bcb0

Browse files
committed
add lines to readme and news file, bump version
1 parent da43969 commit f93bcb0

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: AzureAuth
22
Title: Authentication Services for Azure Active Directory
3-
Version: 1.3.3
3+
Version: 1.4.0
44
Authors@R: c(
55
person("Hong", "Ooi", , "hongooi73@gmail.com", role = c("aut", "cre")),
66
person("Tyler", "Littlefield", role="ctb"),

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# AzureAuth 1.4.0
2+
3+
- Add new CLI auth type, `get_azure_token(auth_type="cli")` to use the Azure CLI
4+
to retrieve a user token.
5+
16
# AzureAuth 1.3.3
27

38
- Documentation update only:

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ tok2 <- get_azure_token("resource2", "mytenant," "serviceapp_id",
7979
password="serviceapp_secret", auth_type="on_behalf_of", on_behalf_of=tok0)
8080
```
8181

82+
6. The **cli** method uses the
83+
[Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli)
84+
command `az account get-access-token` to retrieve an auth token. It is mostly
85+
useful for interactive programming.
86+
87+
```r
88+
get_azure_token(auth_type="cli")
89+
```
90+
8291
If you don't specify the method, `get_azure_token` makes a best guess based on the presence or absence of the other authentication arguments, and whether httpuv is installed.
8392

8493
### Managed identities

0 commit comments

Comments
 (0)