Please Add support for form based and custom STS authentication with on premise gateway.
Many clients/companies use form based and custom STS authentication and to use flow in those scenarios need this enabled.
Also I observed when custom sts and windows are enabled then flow and gateway does not work. It works when only windows authentication is enabled.