IOS Gigya retrieves user data by ID

In my application, I am trying to show a profile picture of a user to whom I am familiar with the user id. I use

socialize.getUserInfo

REST endpoint for this, but it keeps returning my user data. I understand that through the Gigya iOS SDK I don't need to explicitly provide the UID to get my user information, but since I'm trying to get other user data, I need Gigya to use the provided UID, and I haven't found any way to force it.

Is there a way to do this?

Thanks in advance.

+3


source to share


1 answer


This is not possible with the Gigya iOS SDK (or any client side SDK) as it poses a security risk. Any REST API call made from a client-based security context only has access to data relevant to the current login session. Thus, it is not possible to query the database for other users or make REST API service calls from the iOS SDK (and similar environments).



Instead, you would need to access the REST endpoint directly or use a server-side SDK that uses your partner's private key or signed request to make such a request to the database.

+2


source







All Articles