Setting up OAuth for Dropbox
Step 1: Enable the Dropbox API
Go to the Dropbox App Console.
Click on "Create App" and select "Scoped App".
Choose the "Full Dropbox" access type.
Name your app and click on "Create App".
Step 2: Setting up Redirect URI and Scopes
You should now be in the settings page for the application you have just created. Scroll down until you get to the section titled "OAuth 2". In here enter your redirect URL which will consist of something like the following, where it will be your Medialake domain, followed by the subdirectory:
https://'YOUR_DOMAIN'/dropbox-redirect
Now, go to the permissions tab at the top of the page. Please select the following permissions by making sure they are ticked:
account_info.write
account_info.read
files.metadata.write
files.metadata.read
files.content.read
file_requests.write
file_requests.read
Under Connect make sure profile, openid, and email are ticked
Click Save at the bottom of the screen, and then Submit
Step 3: App Key and App Secret
Go back to the settings tab at the top of the page.
Just above the OAuth section from earlier, there is a section where your "App Key" and "App Secret" are displayed. Please make a note of both of these as they need to be entered into the Medialake settings page when you are setting up your Dropbox integration.
Important Considerations
Make sure to follow security best practices, especially when handling client secrets.
The permissions and configuration might vary based on the specific service or API you're accessing.