Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google oauth2 authorization in iframe/popup

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?

like image 925
QwiglyDee Avatar asked Nov 13 '22 04:11

QwiglyDee


1 Answers

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

like image 54
Chao Wei Avatar answered Jan 22 '23 05:01

Chao Wei