AWS Security ChangesHomeSearch

AWS amazonq medium security documentation change

Service: amazonq · 2025-09-19 · Security-related medium

File: amazonq/latest/qbusiness-ug/dropbox-prereqs.md

Summary

Updated required scopes and added OAuth 2.0 authorization code flow implementation steps with token rotation

Security assessment

Changed permissions to more granular scopes (account_info.read, members.read) and added secure token generation process using authorization code flow with offline access. This reduces over-privileged access and implements secure token management.

Diff

diff --git a/amazonq/latest/qbusiness-ug/dropbox-prereqs.md b/amazonq/latest/qbusiness-ug/dropbox-prereqs.md
index 521dd3be4..f50d426b2 100644
--- a//amazonq/latest/qbusiness-ug/dropbox-prereqs.md
+++ b//amazonq/latest/qbusiness-ug/dropbox-prereqs.md
@@ -31 +31 @@ Before you begin, make sure that you have completed the following prerequisites.
-    * `team_data_member`
+    * `account_info.read`
@@ -33 +33 @@ Before you begin, make sure that you have completed the following prerequisites.
-  * Noted your Dropbox app key, Dropbox app secret, and Dropbox access token for basic authentication credentials.
+    * `members.read`
@@ -35 +35,27 @@ Before you begin, make sure that you have completed the following prerequisites.
-  * Generated and copied a temporary Oauth 2.0 access token for your Dropbox app. This token is temporary and expires after 4 hours. For more information, see [Dropbox documentation on OAuth authentication](https://developers.dropbox.com/oauth-guide) on the Dropbox website.
+    * `team_data.member`
+
+  * Create an authorization URL containing client ID (app-key), redirect_uri, response type, access type and scopes. Obtain User Authorization by signing in to Dropbox and grant your application the requested permissions.
+
+`Sample Authorization URL:`
+
+`https://www.dropbox.com/oauth2/authorize`
+
+`?client_id=abcd1234example`
+
+`&redirect_uri=https%3A%2F%2Fyourapp.com%2Fcallback`
+
+`&response_type=code`
+
+`&token_access_type=offline`
+
+`&scope=files.metadata.read%20files.content.read`
+
+  * Exchange authorization code for tokens by requesting tokens from the Dropbox token endpoint.
+
+    * curl https://api.dropboxapi.com/oauth2/token -d code=AUTH_CODE -d grant_type=authorization_code -d client_id=APP_KEY -d client_secret=APP_SECRET
+
+    * Replace AUTH_CODE with the obtained authorization code, APP_KEY and APP_SECRET with your application client ID (App key) and secret key.
+
+  * Noted your Dropbox app key, Dropbox app secret, and Dropbox access token and refresh token for OAuth 2.0 authentication credentials.
+
+  * Generate an OAuth 2.0 access token with token_access_type=offline to obtain a short‑lived access token and a long‑lived refresh token. For more information, see [Dropbox documentation on OAuth authentication](https://developers.dropbox.com/oauth-guide) on the Dropbox website.