Message Filter Extension won't use Basic Auth

I am trying to set up a message filter extension that will use shared web credentials for basic auth when calling to its ILMessageFilterExtensionNetworkURL.

I have associated domains set up for both "messagefilter:<domain>" and "webcredentials:<domain>" and the message filter IS correctly calling the ILMessageFilterExtensionNetworkURL with each message - so that part is working.

As detailed here, I have set up Shared Web Credentials and my view controller is using SecAddSharedWebCredential() to save the creds to the correct domain. Using Authorization services, the creds are auto-filled into my app's login screen. When I go under Settings > Passwords, I see the creds are saved and they are the correct creds to the corrent website that matches ILMessageFilterExtensionNetworkURL.

Regardless of all of this, the deferQueryRequestToNetwork() refuses to use the creds and implement Basic Auth in its URL call. It makes the call to the correct URL, it just won't use the Shared Web Creds for basic auth.

Any help would be greatly appreciated.

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

Message Filter Extension won't use Basic Auth
 
 
Q