Openid sign out configuration help

#1

Hi,

I’m trying to add a sign out button to my shinyproxy app:

actionLink("logout", "Sign Out", onclick = "location.href='https://housemate.pgstevenson.com/logout';")

by adding the logout url to my application.yml in the following format:

logout-url: https://YOUR_AUTH0_DOMAIN/v2/logout?returnTo=http%3A%2F%2Fwww.yourshinyproxyserver.com

This is my authentication section:

proxy:
  authentication: openid
  openid:
    auth-url: https://accounts.google.com/o/oauth2/v2/auth
    token-url: https://www.googleapis.com/oauth2/v4/token
    jwks-url: https://www.googleapis.com/oauth2/v3/certs
    client-id: xxxx
    client-secret: xxxx
    logout-url: https://accounts.google.com/v2/logout?returnTo=http%3A%2F%2Fhousemate.pgstevenson.com

When I press logout I get a 404 from google. What am I missing?

Thank you.

#2

Hi @Paul_Stevenson,

The logout-url given in the configuration example was for Auth0. For Google, the URL is somewhat different (not 100% sure, haven’t tested this):

https://www.google.com/accounts/Logout?continue=http://www.example.com