I’m having the same problem as gbisschoff on github in issue #87 (https://github.com/openanalytics/shinyproxy/issues/87):
I configured shinyproxy 2.0.4 to do authentication via Auth0. Login and group-based access to apps is working nicely, but logout does not work. Whenever I click the ‘Sign Off’ button in the navbar, it says ‘User logged out [user: aaa@bbb.cc]’ in the shinyserver log, but I stay logged in and get redirected to the landing page, where I can start the example app.
Here is my application.yml:
id: 01_hello
display-name: Hello Application
description: Application which demonstrates the basics of a Shiny app
container-cmd: [“R”, “-e”, “shiny::runApp(‘mnt/app’)”]
container-image: default
access-groups: [scientists, mathematicians]
container-volumes: [ “/srv/shinyproxy/apps/hello:/mnt/app” ]
server:
servlet:
context-path: /hub1
(‘h!!ps:’ is intentional as I am not allowed to post that many links here)
I set the allowed callback URLs properly at Auth0 and as login is working well, I assume that everything is correct there. I also played around with the allowed logout URLs at Auth0, but still without success. With simple authentification everything worked well. Is there a setting that I missed or anything else that I should check to get logout working with OpenID?
Many thanks!
I hope it is reproducible - please let me know, if you need more details.
Maybe it’s a concurrence of OpenID integration & the shinyproxy context-path: https://myserver.net/hub1 …?
in navbar.html change
<a role=“button” class=“btn btn-primary btn-sm” th:href="@{/logout}" th:if="${isLoggedIn}">Sign Out
to
<a role=“button” class=“btn btn-primary btn-sm” href=“https://myserver.auth0.com/v2/logout?returnTo=http%3A%2F%2Fshinyserverurl/logout” th:if="${isLoggedIn}">Sign Out
This really logs out the user from auth0 and from shinyserver.
Hi there,
I am having problems with this when using Auth0 as an OpenID authentication service. I have tried using @{/logout} and the href approach, specified above, but nothing happens when I click on the Sign Out button. My app is specified to be direct (/app_direct/app_name) in the yml file, so I have added the Sign Out button using Shiny’s HTML function.