-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auth error with Chrome extension: Invalid Cookie Policy #102
Comments
Subsequently a red icon with no "g" shows up. On Clicking the red button, I get the following error:
|
My suspicion is that this is an issue with the Google Signin API not working from |
Yes, The preferred way for authentication inside of Chrome extensions is the Chrome Identity API which would probably be out-of-scope for this element. |
I suppose an alternative would be to somehow proxy these calls through the background script, so that the element just gets the status, or a Sign-in button to trigger auth flow on the background script But this would probably fall within the scope of a separate set of extensions that work on Chrome Apps/Extensions, and not within the core GoogleWebComponents? Is there a more appropriate place where I can put in or track a request for such a set of components from the Polymer team? (Or would that be the Chrome team?) |
I think the Chrome Identity API wouldn't be the best fit here - agree on it being out of scope. The element should focus on the 90% use-case. We could (potentially) document some of the workarounds needed if operating in an extensions world, but imo my take is we should avoid baking in workarounds here into the element itself. |
I'm getting the exact same errors during build and onClick() when I run my Polymer project on my device using Cordova. Is that related? The code works as expected when I run locally on my desktop. |
Could you use oauth2 the way it is intended for installed applications in this use case? https://developers.google.com/identity/protocols/OAuth2InstalledApp That would be a nice addition to google-signin, it is not an uncommon request, and we could hide the differences under the hood. |
I am getting the same error. <style> /* Put your CSS over here */
src="https://code.jquery.com/jquery-3.4.1.js"
alert("The paragraph was clicked.");
|
how to solved this issue, on chrome extension. |
When using google-sign-in on Chrome extension, loading the page directly like so:
With the following tag in my custom element:
I get the following error::
Error:
Uncaught gapi.auth2.ExternallyVisibleError: Invalid cookiePolicy
The text was updated successfully, but these errors were encountered: