CORE-5558: added rudimentary redirection handling for authorization requests