-
Notifications
You must be signed in to change notification settings - Fork 20
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
Tokenized login support #314
Conversation
ed2a243
to
db94214
Compare
sbtools-coverage.zip |
I installed the Line 87 in fa90d6b
|
Thanks @gregor-fausto do you see the copy button in the upper right as in: |
Yes, I do and see now that this is what the help file for R version 4.2.2 (2022-10-31) |
Great - what do you think would be helpful in terms of documenting how this is supposed to work? |
For context, I'm a new user to ScienceBase and
|
Great -- thanks for that. Will do all three. |
I also found the documentation a little bit confusing. I initially used the Once I figured that out, I was able to trigger the login window both on Windows (RStudio 2023.06.0, R 4.2.3) and on WSL/Ubuntu (RStudio 2023.09.0, R 4.3.2). And storing the token and my username in my I ran into one other awkward thing when I tried running this in plain R, outside of RStudio. When we're outside of the RStudio context,
I'm curious what the effect here will be on unattended workflows. Do you know how long the token lasts? I have some SB workflows which take many hours. |
I had the same thought about the multi-line token text that you copy from the manager app. I'll ask them about just making it a single line of json. |
Based on this review and further work to clean this all up -- I've decided to use a different approach to saving the token. There's now a very simple cache in a temp file at I have a function that pulls from that path:
When you call It then calls The affect is that if you have an |
Per #316 |
CRAN submission is in -- will merge once accepted. |
fixes #311 fixes #313
This is a fairly major update to the package. It includes a pkgdown site and a considerable amount of change in the authentication system under the covers. The package no longer relies on a session object, but rather stores a keycloak token and token expiration information in a session environment. This may not be the best way to handle the token in the long run, but it works for the time being.
Am seeking review but this needs to be done for a pending change on sciencebase so we may merge sooner than later to get on cran in time for the changes occurring upstream.