I have created application on Developer Portal and when I try to access the alfresco using the cloud, I get redirected to a login page for Access/Deny but when I enter my username and password, it says Authentication Failed. But with the same username and password I am able to login directly and move to the dashboard. Please guide, where the problem is:
Below is the code that I am using: —————————————-
<!DOCTYPE html> <html> <head> <title>Alfresco OAuth Sample Demo</title> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Expires" content="-1"> </head> <body> <h1>Welcome to the Alfresco OAuth Sample App</h1> <form action="https://api.alfresco.com/auth/oauth/versions/2/authorize"> client_id: <input name="client_id" value="l7xx3db35ffe61584b0e836f44ea02dbfc0f" size="50px" > This must match the registered value <br /> redirect_uri: <input name="redirect_uri" value="http://www.infosys.com" size="70px"> * This must match the registered value <br /> scope: <input name="scope" value="public_api" > <br /> response_type: <input name="response_type" value="code" readonly="readonly" ><br /> <input type="submit"></form> </html>
The account you created on the Alfresco Developer Portal is not the same thing as an Alfresco Cloud account. Those are two separate sets of credentials. So if you are writing an application that as a registered developer, you'll use your Alfresco Developer Portal to manage your application keys. Then, when you want to access Alfresco in the Cloud, the user running your application will grant access to your application using their Alfresco in the Cloud username and password.
Are you using your Alfresco in the Cloud credentials on the grant page?