Skip to content
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

sso_shiny_app() does not exist #24

Open
timothyfraser opened this issue Jan 14, 2025 · 1 comment
Open

sso_shiny_app() does not exist #24

timothyfraser opened this issue Jan 14, 2025 · 1 comment

Comments

@timothyfraser
Copy link

Hi folks at tapLock,

Thanks for developing this package! This is exactly what shiny developers need to scale up their apps. Unfortunately, I think there must be a bug or two yet - could you provide some clarification?

The vignettes describe sso_shiny_app(), which doesn't appear to exist.
When I use instead tapLock::add_auth_layers(auth_config), I'm still running into a lot of issues; can get everything to work except the redirect. Is the final version of package available?

Best,
Tim

@andyquinterom
Copy link
Member

@timothyfraser

Yes! This is a problem on documentation on our part. The vignette needs to be updated as soon as possible, we will get to that this week.

The current way of enabling SSO is using tapLock plus the tower package.

It can be done like this:

shinyApp(ui, server) |>
  tower::create_tower() |>
  tapLock::add_auth_layers(auth_config) |>
  tower::build_tower()

You first take the shiny app object, use tower to decompose it into a middleware enabled shiny app, add the auth layers and build the tower.

Let me know if this works. If it doesn't, email me [email protected] and we can have a more 1on1 chat in case any non-disclosable data is needed to fix any errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants