cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to connect alfresco cloud

amyk
Champ in-the-making
Champ in-the-making
Hi ,
I recently switched to alfresco for maintaining documents of my website.have setup Alfresco community 4.2 on localhost and is working fine .Now my main task is to connect with alfresco cloud for that i have started working on alfresco api but till now i am not succeeded. need help
After going through certain examples i have added 4 files in tomcat/webapps/test.war
config.js
index.html
mycallback.html
refreshAccessToken.html
withAccessToken.html

When i access this after heading to my.alfresco.com account when i enter my credentials it says authentication fail…need help

PS:The above file have been copy/pasted form alfresco-ouath example on Git.have edited config.js as per my cusotm api's

3 REPLIES 3

jpotts
World-Class Innovator
World-Class Innovator
Things to check:
- You have a valid developer account on http://www.alfresco.com/develop
- You have retrieved both the key and the secret from your developer account
- In your developer account, in the application settings for your app, you have set the callback to match the callback URL in your app exactly
- When you hit your app and Alfresco asks you to authenticate you are using your Alfresco in the cloud credentials which are different than your Alfresco developer account credentials

Jeff

amyk
Champ in-the-making
Champ in-the-making
Hey thanks jeff,I did a quick check and now authentication is being done.But a new problem has arrived.What should be my callback url.My whole scenario is that I have to connect my Drupal website with alfresco cloud. I have placed the above files in drupal root folder and using CMIS module have set url to https://api.alfresco.com/cmis/versions/1.0/atom.Throwing error .Have tested connection with alfresco test site using url http://cmis.alfresco.com/service/cmis and it is working fine 

jpotts
World-Class Innovator
World-Class Innovator
The callback URL is up to you. It's the URL that Alfresco should use to pass you the authorization code. You'll take that authorization code and exchange it for an access token. This is part of the OAuth2 "dance". See http://www.slideshare.net/jpotts/intro-to-the-alfresco-public-api for a high-level discussion of the Public API. You might also look at https://github.com/AlfrescoLabs/public-api-examples.

Jeff