Authorizationa nd redirection works