add auth support for https method