feat(auth): optional callback port (#10666)
### Description
In some situations, users might want to change the port for the callback
when logging in. This PR allows such behavior through an ` environment
variable.
### Testing Instructions
I manually tested that the port changes in the URL. Also added some
tests.