-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: add authorization grant refreshing token #693
base: master
Are you sure you want to change the base?
Conversation
This fails after 15 mins with the message:
To reproduce:
|
|
1:100000 %>% map(
~{
Sys.sleep(10)
print(.)
print(format(Sys.time(), "%Y-%m-%dT%H:%M:%S"))
ds.rep(x1 = 4, times = 6, length.out = NA, each = 1, source.x1 = "clientside",
source.times = "c", source.length.out = NULL, source.each = "c",
x1.includes.characters = FALSE, newobj = "rep.seq")
}) running again
|
After some puzzling got this running on DEV #!/usr/bin/env Rscript
library(dsBaseClient)
library(purrr)
#demo_url <- "https://armadillo-demo.molgenis.net/"
demo_url <- "http://localhost:8080/"
demo_token <- armadillo.get_token(demo_url)
builder <- DSI::newDSLoginBuilder()
builder$append(server = "study1", url = demo_url, profile = "default", token = demo_token, driver = "ArmadilloDriver",
table = "lifecycle/core/nonrep")
logindata <- builder$build()
conns <- DSI::datashield.login(logins = logindata, assign = T, symbol = "nonrep")
1:100000 %>% map(
~{
Sys.sleep(10)
print(.)
print(format(Sys.time(), "%Y-%m-%dT%H:%M:%S"))
ds.rep(x1 = 4, times = 6, length.out = NA, each = 1, source.x1 = "clientside",
source.times = "c", source.length.out = NULL, source.each = "c",
x1.includes.characters = FALSE, newobj = "rep.seq")
}) |
grep -i auth.molgenis.org logs/armadillo.log gives
Guess that's a config poll for changes on the OIDC provider. |
Test did not succeed as using different OICD does not help while testing. |
we believe it is better to stop 'molgenisAuth.r' and instead use htt2 in both molgenis-r-armadillo and molgenis-r-datashield. httr2 has device workflow and refresh token capabilities. |
Quality Gate passedIssues Measures |
Quality Gate passedIssues Measures |
No description provided.