We have a Shiny Server Pro setup in-house with a variety of different apps being hosted. When the user connect to the base URL or the URL of a specific app, they are asked to login via via the built-in authentication in shiny server pro (authenticating via auth_active_dir). However when they logout of an app they are always redirected back to the base URL of the Shiny Server. So for example after logging out of the app located at 'https://appsite.company.com/app1' they are redirected to the login page at 'https://appsite.company.com'.
Is there any way to control where the logout button redirects the user after logging them out? Ideally we would like the user to be redirected the the login page for the same app that they just logged out from.
The code for our logout button looks like this:
tags$a( class = "btn btn-primary", href = "__logout__", role = "button", "Sign out" )
I hope that you can help with a solution