On Sunday, March 3, 2013 1:19:18 PM UTC+1, sune wrote:
Given the nature of your API, you might have scenarios where you have
on access token pr resource. Your base URL could give access to all
kinds of resources.
I can only see a need for one AT per resource under the following conditions:
1. Your resources are very broad (e.g., spreadsheets, calendar, etc.)
2. You want to control access to each of those independently (i.e., be able to revoke a client's access to calendar but not spreadsheets)
So, very viable, but perhaps not the most prevalent use case.
If your resources are more fine grained, however, or you don't need to control access to each resource independently, then scopes and one AT is the way to go.