#671 - Addressed Open Redirect issue in external authentication