A sample chrome app that uses the identity API to request information of the logged in user and present this info on the screen.
Who Am I Application
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Who Am I", "version": "0.0.0.1", "manifest_version": 2, "minimum_chrome_version": "29", "pkey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPZPLeXCmc7wl3qYdOMhhn+NudVFGLamgy7o7eO0p9N8RlYRbCQd69zFccioAMQEO4OwJdcnGA/3eCjOxqpaIYZcwNa0bbaAvOQtSLNIJGXHHtRZ1GnEvwwWDW5OtPDV5btCuud1u64/TYXzTBB3qVHC8DWsEH8Z2H65TALa+vEwIDAQAB", "app": { "background": { "scripts": ["main.js"] } }, "description": "A sample chrome app that uses the identity API to request information of the logged in user and present this info on the screen.", "icons": {"128": "black-boxes-128x128.png"}, "permissions": ["identity"], "oauth2": { "client_id": "315310882197.apps.googleusercontent.com", "scopes": ["https://www.googleapis.com/auth/plus.login"] }}
Read more