add redirection to origin url on authentication