-
Notifications
You must be signed in to change notification settings - Fork 0
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
Ensure other authentication options can be used #34
Conversation
… for username and groups
… config file for running app without login
…isible. Update test rsults
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments and discussion starters...
Using golem::app_prod()
in place of test_mode
We ran into issues trying to do this on a separate project. It mostly boiled down to the fact that how golem
has this setup, a user has to opt-in to run the application in production mode (i.e. that have to set the option golem.app.prod
to TRUE
).
Configuration file
Perhaps we should consider using a separate configuration file for testing purposes. I think it's a little confusing to have both a test_shinymanager
and a prod_shinymanager
. Plus you have already set it up so that the file path can be set using the environmental variable CONFIG_PATH
. Maybe we should make a test-config.yml
.
inst/golem-config.yml
Outdated
user_id: user | ||
user_name: user | ||
user_group: groups |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to allow these to be set in deployment when user_identification
determines their value. Particularly in a case like shiny_session
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not completely follow here. To be set how exactly? Not in the golem-config.yml
file, but somewhere else?
I agree that both a test_shinymanager and prod_shinymanager config might be confusing. The biggest difference is whether app_prod is set to 'yes'. We can just make one Regarding the use of |
The result of
|
Ah my bad, that is confusing! |
…o match formatting standards
… so that configuration becomes easier for end users (cherry picked from commit aa2aa24)
Addresses #33.
Creates different configuration options with and without shinymanager, so that other login options can be used. In case other login methods will be used, the user information will either be obtained directly from the shiny session (e.g. Posit connect deployment), or from the HTTP headers within the session (ShinyProxy deployment).