This question is related to the OAuth2 API.
Is it possible to define a callback different than the base URL defined on an OAuth app, so that a user can be redirected to it instead when making a request?
I want to authenticate a user by sending them to the authorize endpoint, however, I want the code response to come back to a different endpoint on my side. (Base url is something like example.com and I want the code response to go to a example.com/login/bitbucket or example.com/projects/ for example).
I tried adding a redirect_uri query parameter but it produces a non-usable code (can't trade it for access and refresh tokens).