Coinbase App OAuth2 Permissions
Different applications require different access to user accounts, and Coinbase App provides many options to fine-tune the access. Options range from accounts to API endpoints accessed by API consumer. For full list of options, see OAuth2 reference.
Account Access
Coinbase App applications can request different access to user’s wallets. This access is defined by a drop down selection on the consent page when the user connects to the app. See the example below.
Note that Wallet access is still used together with OAuth2 scopes (see below). This means that account=all
combined with scope=wallet:buys:create
can create buys on all of user’s wallets but won’t for example give access to sell on any of their accounts.
OAuth2 Permission Scopes
For OAuth2, permissions are specified by including an additional scope
parameter in your OAuth2 request. For example, your app may only need to view a user’s accounts and transaction history, but may not need or want the ability to send/receive and buy/sell a digital asset. Multiple permissions should be separated with a comma character in the URL (i.e. &scope=wallet:accounts:read,wallet:transactions:read
).
It’s recommended that you only ask for permissions that your application needs. If you need to obtain more permissions later, you can re-authenticate the user, forcing the user to consider authorizing additional permissions the next time s/he opens the app.
Here is an example request URL with a scope
parameter on the end: