Customize oAuth2 logout target

Hello! I’m on openrelease.ironwood using Tutor.

Is there a way to specify the URL to which a user should be redirected to after logging out? I’m using edX as an oAuth2 provider, so the regular logout flow is as follows:

  1. User in client site clicks log out
  2. This logs them out in the client site and redirects them to <edx domain>/logout
  3. Finally user is redirected to the <edx domain> root

I want to change the last step so users are redirected to my client site instead of the edX domain.

I found this answer but it involves simply doing the redirect at the nginx level instead of edx, which is not desirable.