- Input
- A fictional scheduling app wants to read free time from a user's calendar.
- Assumption
- The calendar provider supports OAuth.
What happens
- The user selects Connect calendar in the scheduling app.
- The calendar provider asks the user to approve read access.
- The provider gives the app a token.
- The app reads free time using the token until it expires or the user revokes it.
- Result
- The app gets only the access the user approved.
- Where it stops
- Which permissions exist, and how long tokens last, is set by the calendar provider.