Google oauth2 authorization in iframe / popup

My application runs in iframe (with chrome extension). The application should ask the user for some permissions using google oauth2. Redirecting to oauth page does not work directly in iframe, due to X-Frame-Options: SAMEORIGIN at https://accounts.google.com/o/oauth2/auth

Is there a way to display the page in a popup?

+4
source share
1 answer

Google+ Logging in seems like a good choice for your business. It comes with a button that starts the authorization flow in a pop-up window.

+1
source

Source: https://habr.com/ru/post/1414792/


All Articles