cancel
Showing results for 
Search instead for 
Did you mean: 

[iOS] Alfresco Cloud API Key

angillet
Champ in-the-making
Champ in-the-making
Hi,

I'm working on a customisation of the Alfresco mobile app for iOS and I've got some trouble with Alfresco Cloud accounts.

This HTTP GET request :


https://a.alfresco.me:443/alfresco/a/-default-/internal/cloud/user/${MY_ACCOUNT_ADDR}/accounts


is returning a 401 error, with the following response message : "Invalid Key !"

I've seen that this key is passed with an environment variable (${ALFRESCO_CLOUD_API_KEY}) so I've tried to use my key generated on the Alfresco Developer Portal but without success.

I've also generated a token via OAuth services and tried it… same error message…

Am I heading the wrong way ? Is it possible to access that URL with an Alfresco Public API Key ?

Regards,
Antoine
1 REPLY 1

mikeh
Star Contributor
Star Contributor
Hi Antoine

As the app was required to be connected to Alfresco Cloud before the public API was created, we needed a way to access the non-CMIS APIs without opening this path up to everyone. Therefore, the store version of the app has this key at compile time in order to identify itself to the API gateway. We keep this key out of the source code to control access to this private channel.

I have asked Marc Dubresson to get in touch with you and we'll see if we can find a way to get you connected to cloud.

Thanks,
Mike