Hello. I'm running a Spring Boot application that uses OAuth2 to authenticate users behind a Spring Cloud Gateway, hence I need to change the url of basically every redirection that happens to go through the gateway, as in production there will be no direct access to the application from the internet.
I've found spring.security.oauth2.client.registration.github.redirect-uri and already set that accordingly, which works fine.
My issue currently is that when visiting myGateway/protectedResource I get redirected to myApp/oauth2/authorization/github, which I need to change to myGateway/oauth2/authorization/github.
Does anyone know how I can change this?