cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco configuration for development.

mswornavidhya
Champ in-the-making
Champ in-the-making
Hi,

I am new to work with alfresco. I had registered for Alfresco Developer Protal, Alfresco Developer Forum and also for Alfresco Cloud. I want to integrate alfresco for my iOS application. Hence i downloaded "alfresco-ios-sdk" from github. Also try to run the sample "SDKSamples".

I had created an application in cloud. I'm having the APIKey and Secret key as well for the same. Also i've provided the redirect_uri as "http://www.alfresco.com/mobile-auth-callback.html" for the app.

When i provided the created API and secret key in SDKSamples project and try to run the cloud section unable to process the cloud with my credentials. 

The console message that i received is as follows:
<strong>
"2013-12-26 11:15:42.332 SDKSamples[668:c07] INFO [MobileSDKTableViewController viewDidLoad] SDKSamples is using v1.3.0 of the Alfresco SDK.
2013-12-26 11:15:48.239 SDKSamples[668:c07] DEBUG [AlfrescoOAuthLoginViewController loadWebView] UIWebviewDelegate loadWebView: just before loading request with https://api.alfresco.com/auth/oauth/versions/2/authorize?client_id=l7xx5b89629448614a1f85212422bc11b...
2013-12-26 11:15:48.425 SDKSamples[668:c07] DEBUG [AlfrescoOAuthLoginViewController webViewDidStartLoad:] UIWebviewDelegate webViewDidStartLoad
2013-12-26 11:15:50.084 SDKSamples[668:c07] ERROR [AlfrescoOAuthLoginViewController webView:didFailLoadWithError:] UIWebviewDelegate didFailLoadWithError
2013-12-26 11:15:50.085 SDKSamples[668:c07] ERROR [AlfrescoOAuthLoginViewController webView:didFailLoadWithError:] Error occurred while loading page: The certificate for this server is invalid. You might be connecting to a server that is pretending to be “api.alfresco.com” which could put your confidential information at risk. with code -1202 and reason (null)"
</strong>


I'm having the following clarifications:

1. What should i provide in "redirect_uri".
2. I had created an testing site in developer portal and added some documents too. How will i do content management for that created site.
3. Is it possible for me access the developer portal - created testing site - using my cloud app id?
4. When i access "repository" in "SDKSamples" application, and clicked "Done", it throws an error message as "Wrong Credentials. Connection Failed". So what should be the credentials to be provided. Is there any steps needed to follow in creating and providing the credentials?

Kindly help me.

Thanks and regards,
M.Sworna Vidhya
1 REPLY 1

mikeh
Star Contributor
Star Contributor
It seems as though you are doing everything correctly, in fact I can access that oAuth page correctly just now. I wonder if there was a temporary problem accessing that site over the Christmas period? Does it still give you a certificate error if you try the sample app again?

Regarding your queries:
1. That redirect_uri is correct. You have the option of providing your page, but the default one we provide is also acceptable.
2. When you say "developer portal", I assume you mean "my.alfresco.com". In which case, you can access your cloud content via the "Sites" option within the SDK Samples app.
3. Yes - see answer 2 above.
4. The error you get here is likely due to the oAuth problem you were seeing earlier in your post.

The other point to note is that you're using a pre-release "HEAD" version of the SDK. There are no new problems that we're aware of between v1.1 and v1.3 but it hasn't been verified by our thorough QA process yet. You can use the "1.1.0" tag to get the 1.1 SDK instead if you prefer, or get the release here: https://github.com/Alfresco/alfresco-ios-sdk/releases/tag/1.1.0

Thanks,
Mike

P.S. Apologies for the delay in replying - I usually only monitor the "Mobile" forum for queries about the iOS and Android SDKs.