-
Notifications
You must be signed in to change notification settings - Fork 200
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
Authorization issue with polymer-cli build + firebase deploy #2169
Comments
Can you post your firebase.json? It should be in your projects root directory. |
@mikael2933
I use all of the services(realtime database, storage and hosting). |
I experience the same issue... using app-drawer-template with firebase + polymer cli |
To me, it doesn't seems like a problem with Google login, more like a problem between polymer routes and firebase routes. Firebase rewrites shouldn't change the URL it self. @locomuco exactly what do you experience, is it the same with the URL changing to "/index.html"? |
@mikael2933 doesn't work without or with rewrite rules. |
What doesn't work? Is it the same problem with the URL changing to "/index.html" instead of loading the proper content? |
It's the same behaviour without and with applied rewrite rules |
The problem is with the Service Worker's cache. In that file you will find:
this configuration is explained in the GoogleChrome/sw-precache repository https://github.com/GoogleChrome/sw-precache
The solution is to configure "navigateFallbackWhitelist" (Works to limit the effect of navigateFallback)
|
deployed and verified, since this is not a polymer-cli problem either, I'd vote to close this issue here |
This is my config. Feel like submitting a PR to fix this issue. Is there any situation where this path module.exports = {
staticFileGlobs: [
'/index.html',
'/manifest.json',
'/bower_components/webcomponentsjs/webcomponents-lite.min.js'
],
navigateFallback: '/index.html',
navigateFallbackWhitelist: [ /^\/[^\_]+\/?/ ]
}; |
Error: Uncaught TypeError: Cannot read property 'instanceCount' of undefined See: https://github.com/Polymer/polymer-cli/issues/290
Should this be in the docs? The error messages which result from this problem are vague. |
Description
After using polymer-cli to build project(which is also generated by the tool) and deploy to firebase, if a user want to use google login, the authorization page would redirect to
index.html
of the app rather than normal google login page.This issue had been filed in polymerfire repo: issue46@polymerfire
More precisely, the login page would redirect to
https://<your-firebase-app-id>.firebaseapp.com/_/auth
. But there seems to be a redirecting or rewriting rule which cause that URL redirect toindex.html
instead of google login window. @mgibas in the polymerfire's issue thread also mentioned that the problem was gone after switching togulp
to build.Versions & Environment
Steps to Reproduce
index.html
Expected Results
Step 4 in the above should prompt up google login window
Actual Results
The text was updated successfully, but these errors were encountered: