Get authentication flow working