Merge connect and connect secure in just one method.