Can Message Filter Extension use configured Shared Web Credentials for auth'd calls?

We've created a Message Filter Extension that relies on the network action workflow of Message Filter Extensions (ILMessageFilterExtension). Has anyone applied authentication to these calls?

It works great when being called un-authenticated, but the logic behind this API costs us money, and we'd like to rate-limit it by the client to avoid someone DDOs'ing the exposed API and racking up our bill.

We've followed https://developer.apple.com/documentation/sms_and_call_reporting/sms_and_mms_message_filtering/creating_a_message_filter_app_extension and set up a Shared Web Credential (both webcredential and messagefilter associated domains). Still, our calls never have the created and verified credentials forwarded to our service with the REST API call.

Have any thoughts on how to apply a shared web credential to those delegated calls?

Answered by Engineer in 795647022

There's no supported way for you to insert auth in a Message Filter Extension with the APIs currently available. If you'd like us to consider adding the necessary functionality, please file an enhancement request using Feedback Assistant. Once you file the request, please post the FB number here. If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why?

You could try managing authentication in your app and sharing the results with your extension point via an app group, albeit that might not be an ideal workaround attempt.

Rico WWDR - DTS - Software Engineer

There's no supported way for you to insert auth in a Message Filter Extension with the APIs currently available. If you'd like us to consider adding the necessary functionality, please file an enhancement request using Feedback Assistant. Once you file the request, please post the FB number here. If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why?

You could try managing authentication in your app and sharing the results with your extension point via an app group, albeit that might not be an ideal workaround attempt.

Rico WWDR - DTS - Software Engineer

We understand that there is currently no supported way to insert authentication in a Message Filter Extension. However, we are confused as to why the documentation suggests using shared web credentials in this context if they can't be applied due to sandbox restrictions. Doc reference: https://developer.apple.com/documentation/sms_and_call_reporting/sms_and_mms_message_filtering/creating_a_message_filter_app_extension

Could you provide more clarification or update the documentation to reflect the current limitations? We asked the same thing in our post on the forum: https://developer.apple.com/forums/thread/758611

We also added a Bug Report FB14165508

Can Message Filter Extension use configured Shared Web Credentials for auth'd calls?
 
 
Q