AnsweredAssumed Answered

Authenticating to the CMX when using the iOS SDK

Question asked by paulw.wilkinson on May 28, 2014

I am trying to use the iOS CMX SDK with the devnet sandbox server. The sandbox server requires basic authentication to be used with requests, but the CMX iOS SDK doesn't seem to allow any way to specify the credentials.  This results in an error when the app attempts to connect to the server API url -


2014-05-28 11:49:55.195 CMXModel[17231:60b] URL api/cmxmobile/v1/venues/info/

2014-05-28 11:49:57.707 CMXModel[17231:60b] Error Domain=AFNetworkingErrorDomain Code=-1011 "Expected status code in (200-299), got 401" UserInfo=0x10b824040

My question is, is there some way of specifying the credentials to the iOS SDK to the CMXClientConfiguration object?  I tried including the username/password in the URL RFC1808 style, but it doesn't work.  It looks like CMXClientConfiguration needs username and password properties.