Skip to content

Commit aba8fd6

Browse files
committed
use load_azure_token when listing graph logins
1 parent 7aed8d7 commit aba8fd6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: AzureGraph
22
Title: Simple Interface to 'Microsoft Graph'
3-
Version: 1.3.1
3+
Version: 1.3.1.9000
44
Authors@R: c(
55
person("Hong", "Ooi", , "[email protected]", role = c("aut", "cre")),
66
person("Microsoft", role="cph")

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# AzureGraph 1.3.1.9000
2+
3+
- Minor backend fixes.
4+
15
# AzureGraph 1.3.1
26

37
- Fix a bug in `ms_object$get_list_pager()` where the `default_generator` argument wasn't being used.

R/graph_login.R

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,7 @@ list_graph_logins <- function()
205205
graph_logins <- load_graph_logins()
206206
logins <- sapply(graph_logins, function(tenant)
207207
{
208-
sapply(tenant, function(hash)
209-
{
210-
file <- file.path(AzureR_dir(), hash)
211-
ms_graph$new(token=readRDS(file))
212-
}, simplify=FALSE)
208+
sapply(tenant, function(hash) ms_graph$new(token=load_azure_token(hash)), simplify=FALSE)
213209
}, simplify=FALSE)
214210

215211
logins

0 commit comments

Comments
 (0)