Made the fixes to the authentication mechanism. Turns out a redirect is needed. All works again.