Unable to connect alfresco cloud
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2014 05:03 AM
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
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
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2014 03:49 PM
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
- 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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2014 12:43 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2014 11:07 AM
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
Jeff
