Two factor authentication not working

Nextcloud version (eg, 12.0.2): 15.0.2
Operating system and version (eg, Ubuntu 17.04): Centos 7
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4
PHP version (eg, 7.1):7.2

Two factor is working fine with direct login. Then We have enabled SSO/SAML authenticate from MS AD that is working fine. But AD user can login without code(There is no promote/page for token)

nextcloud logs

{“reqId”:“XG6mM76X3QWMcrfvGFfAUQAAAAE”,“level”:3,“time”:“2019-02-21T13:22:59+00:00”,“remoteAddr”:“”,“user”:“YMudasar”,“app”:“PHP”,“method”:“GET”,“url”:"/index.php/apps/files/",“message”:“count(): Parameter must be an array or an object that implements Countable at /var/www/html/nextcloud/apps/onlyoffice/lib/appconfig.php#477”,“userAgent”:“Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36”,“version”:“”}

Is there any chance of getting this issue resolved in upcoming release?

I’m note 100% into the topic but I presume you must add 2nd factor to your AD login (like ADFS) as 3rd party authentication provider just reports I verified the identity of this user (or not) which in turn is consumed by your first party app (here Nextcloud). Otherwise you could drive the users crazy when you rely on 3rd party auth provider which already performs MFA auth and you add another factor…