2014-06-05 17 views

回答

1

你可以找到一個令牌的使用範圍的唯一方法是通過這個API來驗證此令牌:

https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=YOUR_TOKEN

,你會得到包括範圍和其他信息像這樣的迴應: { "audience":"8819957365.apps.googleusercontent.com", "user_id":"123456789", "scope":"https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email", "expires_in":3500 }

這裏是Google doc about this

+0

好,謝謝 - 我會嘗試一下,當我得到一個機會 – kevin

相關問題