Google oauth2 authorization in iframe/popup

夙愿已清 提交于 2019-12-10 15:14:03

问题


My application works in iframe (injected with chrome extension). The application needs to ask user some permissions with google oauth2. Redirecting to oauth-page does not work directly in iframe, because of X-Frame-Options: SAMEORIGIN at https://accounts.google.com/o/oauth2/auth

Is there a way to display the page in popup?


回答1:


Google+ Sign-in seems a good choice for your case. It comes with a button that triggers the auth flow in a popup window.



来源:https://stackoverflow.com/questions/10791673/google-oauth2-authorization-in-iframe-popup

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