AnsweredAssumed Answered

Alfresco configuration for development.

Question asked by mswornavidhya on Dec 26, 2013
Latest reply on Jan 27, 2014 by mikeh
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=l7xx5b89629448614a1f85212422bc11b73b&redirect_uri=http://www.alfresco.com/mobile-auth-callback.html&scope=pub_api&response_type=code
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

Outcomes