...
The Google data APIs allow web-based applications to authenticate using a method called AuthSub. The process is illustrated below and involves two stages: obtaining an authentication token (steps 1-4) and using the token to authenticate with the Google data service (steps 5-6).
- The web application (an OpenSocial app, in this case) sends a HTTP request to the Google Accounts page.
- The user is prompted to enter their username and password (or select an account that is already authenticated).
- The user enters their credentials or selects previously authenticated account.
- The user is redirected back to the application with a 'token' URL parameter.
- The application invokes the Google data service (Google Calendar for example) using the token for authentication.
- The Google data service responds.
...
Panel |
---|
function getUrlParam(name) { |
}
Note on the use of SessionAuthToken
...