Authorizing requests with OAuth 2.0 in Google Spreadsheet API

后端 未结 4 1175
一个人的身影
一个人的身影 2021-01-06 05:08

I am trying to create a PHP web page that requires reading some data from a google spreadsheet in my domain (I am using Google Apps Free Edition).

The spreadsheet t

4条回答
  •  失恋的感觉
    2021-01-06 05:41

    yes, OAuth protocol means that when you will try to ask protected resources from other side (google), your site should redirect your user to other's side site, showing him google's login/password dialog, with a request for confirmation that user is agreed to allow your site to use user's resourses from the other site (google in your case). That is how OAuth is working

    and google needs yours user's credentials because google is not sure that user is exactly this user (if he does not have any cookies for example)

提交回复
热议问题