Logging out of an oauth application and logging out of the oauth provider are typically two separate actions (e.g. I wouldn’t expect logging out of HackMD to log me out of GitHub, and clicking ‘Sign in via GitHub’ on HackMD only goes through redirects on GitHub with no confirmation steps if I’ve authorized it previously, just like JupyterHub).
But if you’ve deployed an oauth provider specifically for JupyterHub, then it makes sense to view the two things as linked and logout of them together.
You can set logout_redirect_url
to redirect to another page after logging out of JupyterHub. I think the value for AWS Cognito would be:
GenericOAuthenticator:
logout_redirect_url: "https://<myappclient>.auth.us-east-2.amazoncognito.com/logout?client_id=..."