More work to get authentication to work autmatically. Intercept the result and see if authenticate was called. If so, ignore if it failed. If successful, call again