You could use CMSEnableWIF web.config key and set it to false. Documentation link - it is almost at the bottom a yellow warning box.
Or, using SQL command
UPDATE CMS_SettingsKey
SET KeyValue = 'False'
WHERE KeyName = 'CMSWIFEnabled'
and then restart the application/recycle app pool.