ampproject / ampproject/amphtml

amp-onetap-google not working

Open
#32,668 1 comment 0 reactions 0 assignees View on GitHub
Stale Type: Bug
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

## What's the issue?

I am trying to implement one tap login ([https://amp.dev/documentation/components/amp-onetap-google/](https://amp.dev/documentation/components/amp-onetap-google/)) on my amp page. It is supposed to show a pop-up prompting the user to login with Google Account.

The popup does not show up and I see the following error in the console (Chrome)
`Refused to display 'https://accounts.google.com/o/oauth2/auth?client_id=99199563698-renu0s9sdukir1ijij853r3eovj5fre3.apps.googleusercontent.com&redirect_uri=http://localhost:8000/google-oauth2/complete/google-oauth2/&state=qn3mfmfBf5I3ejWMNmI21XMdsQdpUlqI&response_type=code&scope=https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile' in a frame because it set 'X-Frame-Options' to 'deny'.`

## How do we reproduce the issue?
https://developer.paralleldesk.com/amp/techniciancadet-c

## What browsers are affected?

Checked on Chrome and Firefox and both are affected

## Which AMP version is affected?

AMP version: 2101300534005

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the behavior at https://developer.paralleldesk.com/amp/techniciancadet-c with amp-onetap-google, then compare the result with the component documentation. Inspect the Chrome and Firefox console errors and the affected AMP version; done means the Google One Tap login prompt appears without the reported frame error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
authentication, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.