Hi Karri,
What is the target content for the M-Files web part?
Please check permissions on that target consent. Make sure you get access on that target conent without any authentication error.
Warm Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/ | Posting is provided "AS IS" with no warranties, and confers no rights