且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Google API OAuth2.0 quickstart.py

更新时间:2023-02-16 16:04:24

在client_secret.json文件中,最后添加 redirect_uris 块. 您的文件应类似于: {"web":{"client_id":"foo","project_id":"bar","auth_uri":"foo","token_uri":"bar","auth_provider_x509_cert_url":"foo","client_secret": "bar","redirect_uris":" http://domain_name _where_you_want_to_redirect/"}}

In your client_secret.json file add redirect_uris block at the end. Your file should be like: {"web":{"client_id":"foo","project_id":"bar","auth_uri":"foo","token_uri":"bar","auth_provider_x509_cert_url":"foo","client_secret":"bar", "redirect_uris":"http://domain_name _where_you_want_to_redirect/"}}