Fix for #763: fetch ticket and do proxy check before callback.

This fix simply puts the ticket retrieval and proxy checks before the callback attempt, which happens in `this.authenticationManager.authenticate(credentials)`. Testing in our preprod environment indicates this prevents the callback with an invalid or unauthorized proxy while still permitting a successful proxy validation under expected success conditions.