# Kloudless API interaction
- Connector Category: Storage
- Unified APIs Supported: Storage, Activity
# Setting up OAuth Keys for Adobe CQ5
To set up OAuth keys for Adobe CQ5, sign in to your Kloudless Account and go to the Third Party Services Configuration section. Navigate to the section for Adobe CQ5 and click on the link. The instructions detail how to set up the Adobe CQ5 application, and the permissions needed to extend access to the Kloudless integration.
# Creating/Registering an Adobe CQ5 Application
You will need to take the following steps before connecting end-user accounts to your developer application on the AEM server. Log in to AEM server and navigate to "Tools > Web Console" to find the configuration described below.
- Enable OAuth2 on the AEM server:
- Edit and save the "Adobe Granite OAuth Server Authentication Handler" to enable it.
- Verify at JAAS (Main -> JAAS) that the "com.adobe.granite.oauth.server.auth.impl.OAuth2ServerLoginModuleFactory" LoginModule is registered.
- Bump the rank of the auth handler up to 1100 to not collide with other Login Modules on the AEM server:
- Edit the "Adobe Granite OAuth Server Authentication Handler".
- Set 1100 in "jaas.ranking.name" and click Save.
- Verify at JAAS (Main -> JAAS) that the rank of "com.adobe.granite.oauth.server.auth.impl.OAuth2ServerLoginModuleFactory" LoginModule is 1100.
- Adjust the OAuth resource scope on the AEM server:
- Edit the "Adobe Granite OAuth Resource Server".
/in "Allowed Scopes" and click Save.
- Adjust the lifetime of an OAuth Access Token on the AEM server so that tokens don't expire quickly. Refresh tokens are not available in earlier AEM versions.
- Edit the "Adobe Granite OAuth Token Endpoint".
- Change "OAuth Access Token Expires In" to 31536000 or some other large number and click Save. This is the number of seconds after which the user will have to reconnect their account.
Developer Apps can be created on the AEM server by taking the following steps:
- Go to "Tools > Operations > Security > OAuth Clients" and click "Add New Client".
- Input your "Client ID" (e.g. My App) and the Redirect URI described above.
- Click "Create Client ID". Store your Client ID and Secret in the form above.
# Required Scopes
Adobe CQ5 does not require additional setup for scopes/permissions.
Please contact us at email@example.com with any questions you may have. We'd be happy to help you get set up.