Hey there :smile: We're having some problems with ...
# ask-a-descoper
o
Hey there 😄 We're having some problems with the google login when our app is embedded in an iframe, we tried messing with the iframe settings but we always get to the same 403 page on google's side, any ideas on how to solve this?
r
Google OAuth does not allow authentication flows to run inside iframes or certain embedded browser contexts, which can result in a 403 error or "access blocked" message. This is a strict limitation set by Google and cannot be bypassed by changing iframe settings A recommended approach is to detect when your app is running in an unsupported context (like an iframe or WebView) and then prompt the user to open the login page in a regular browser window. With Descope Flows, you can use the
device.oauthSupport
condition to identify unsupported environments and guide users accordingly—for example, by showing a message that instructs them to open the page in a native browse Check this doc : https://docs.descope.com/auth-methods/oauth/customize/unsupported-webview-oauth
o
Got it, thanks!