Two factor authentication is not working with SSO/SAML

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 facor 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”:“10.90.11.144”,“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”:“15.0.2.0”}

As usual it is always worse to check if open issues exist for a problem :wink: :

My bad, i donot even search it , sorry about that

Never mind :slight_smile: