You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regression (hosting): 13.4.0 does not set oauth authorized domains for preview deploy #6828
Run it on a project that require google auth. (Firebase auth using firebaseUI)
[REQUIRED] Expected behavior
Window pops up for you to log in; and no error logging in.
[REQUIRED] Actual behavior
No window popus up, unauthorized error right away since the preview domain is now allow-listed.
Reacted by Wei, Thomas Taschauer, Kaden Wilkinson, Ihor Panasiuk, Yevhen Bodnia, Erke Canbazoğlu, Noe Stauffert, Azuka Okuleye, Frederik Wallner, Michael Prentice and 1 more
Hey @odinho, thanks for reporting this. I was able to reproduce the issue. Let me raise this to our team so that we can further investigate the cause of this.
One thing I’d like to suggest is to try pinning the firebase-tools version in your .yml file as a workaround:
# This file was auto-generated by the Firebase CLI# https://github.com/firebase/firebase-toolsname: Deploy to Firebase Hosting on PR'on': pull_requestpermissions:
checks: writecontents: readpull-requests: writejobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v4
- uses: FirebaseExtended/action-hosting-deploy@v0with:
firebaseToolsVersion: v13.3.1 # <- this partrepoToken: '${{ secrets.GITHUB_TOKEN }}'firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_SOME_TEST_PROJECT_E771B }}'projectId: some-test-project-e771b
Reacted by Odin Hørthe-Omdal Urdland, Ryuichi Fukuda, Erke Canbazoğlu, Alberto Camarena, Samuel Mallet , Azuka Okuleye, Harishiv Singh, Beren, eugene, Koki Takahashi and 1 more
PR #6895 fixed this in v13.6.0, but we had to manually add the roles/serviceusage.serviceUsageConsumer role to the firebase-adminsdk service account in order to get this working again. We are using CircleCI for CI and not GitHub Actions. This issue appears to be fixed.
Activity
aalej commentedon Mar 4, 2024
Hey @odinho, thanks for reporting this. I was able to reproduce the issue. Let me raise this to our team so that we can further investigate the cause of this.
One thing I’d like to suggest is to try pinning the
firebase-toolsversion in your.ymlfile as a workaround:Splaktar commentedon May 1, 2024
PR #6895 fixed this in v13.6.0, but we had to manually add the
roles/serviceusage.serviceUsageConsumerrole to thefirebase-adminsdkservice account in order to get this working again. We are using CircleCI for CI and not GitHub Actions. This issue appears to be fixed.However, this breaking change should be added to the v13.4.0 Release Notes.
eungkyu commentedon Jul 23, 2024
Hello, I think the deploy script should throw error if it fails to add custom domain.