Chrome Extension identity: OAuth2 request failed: Service responded with error: 'bad request'

最后都变了- 提交于 2019-12-10 14:53:49

问题


I followed https://developer.chrome.com/extensions/tut_oauth exactly step by step but I am stuck at

https://developer.chrome.com/extensions/tut_oauth#identity_permission

where after I execute my extension, instead of getting the token, I get the error:

Unchecked runtime.lastError while running identity.getAuthToken: 
OAuth2 request failed: Service responded with error: 'bad request'

Please suggest what is the possible cause of this error.


回答1:


I think that's because the scope is empty. I was like you follow the article, but found the problem is from the scope area.



来源:https://stackoverflow.com/questions/51619276/chrome-extension-identity-oauth2-request-failed-service-responded-with-error

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