fixing provider to automatically redirect for authorization alls