Where is the authorization information exactly stored?

限于喜欢 提交于 2019-12-24 12:34:58

问题


https://developers.google.com/google-apps/calendar/quickstart/php#step_1_enable_the_api_name Under the notes section of Google Calendar API it says that:

"Authorization information is stored on the file system, so subsequent executions will not prompt for authorization."


回答1:


The credentials file's location is specified in the CREDENTIALS_PATH variable. use the expandHomeDirectory function to get the exact location.

$credentialsPath = expandHomeDirectory(CREDENTIALS_PATH); echo $credentialsPath

Mine is is located on: C:\Users\MyUsername\.credentials\calendar-php-quickstart.json

The reason I asked this is that I am having an error saying

Error refreshing the OAuth2 token, message: '{ "error" : "unauthorized_client".....

I deleted the file to become authenticated again.



来源:https://stackoverflow.com/questions/33312432/where-is-the-authorization-information-exactly-stored

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!