Generic OAuthenticator redirect issue

Did you try exporting these environment variables:
OAUTH2_TOKEN_URL # the same as token_url param
OAUTH2_AUTHORIZE_URL # oauth2 provider’s authorization endpoint

https://github.com/jupyterhub/oauthenticator/issues/107