Google Authentication API (for web apps). The user of a web app is taken to a Google-supplied authentication page where they are prompted to allow or deny access to Google services through the web app. If allowed, the user is redirected back to the web app with an authentication token. The web app can then use this token in communication with Google services.
For desktop apps.