-
Notifications
You must be signed in to change notification settings - Fork 900
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
Storage Emulator missing auth from IOS SDK #3584
Comments
This could be an issue with parsing the credentials from the iOS SDK. I'll look into it. |
Hi, Actually, the exact same code is working perfectly fine uploading files to local firebase storage emulator, when running the same app on the Android Emulator (..using Pixel 3a API 30 - Android 11.0), as opposed to running the same code/app with the iOS Simulator, which is throwing that permission denied error --> request.auth is null. Temporary workaround until this bug is fixed is to replace any [ENVIRONMENT INFO] I guess it could be caused by a few different things, but found a similar but different bug/resolution around fb 'firestore' rules, in case it could help resolution or current fb 'storage' rules bug.. @abeisgoat, I don't want to be a pain, but since it's been 3 months since your last msg on this one, any progress or ETA here? Thanks! |
It's possible bug in emulators. I can't write secure rules for Storage using 'request.auth'.
[REQUIRED] Environment info
firebase-tools: 9.16.0
platform: macOS
iOS SDKs:
[REQUIRED] Steps to reproduce
Preparing:
Upload:
[REQUIRED] Expected behavior
File is uploaded to Storage.
[REQUIRED] Actual behavior
Permissions error.
Error Domain=FIRStorageErrorDomain Code=-13021 "User does not have permission to access gs://aaa.appspot.com/users/Lv0O2wJBQhII3IzgApemOm5ahLUX/xxx/yyy/image0.png." UserInfo={object=users/Lv0O2wJBQhII3IzgApemOm5ahLUX/xxx/yyy/image0.png, ResponseBody={"error":{"code":403,"message":"Permission denied. No WRITE permission."}}, bucket=aaa.appspot.com, data={length = 74, bytes = 0x7b226572 ... 2e227d7d }, data_content_type=application/json; charset=utf-8, NSLocalizedDescription=User does not have permission to access gs://aaa.appspot.com/users/Lv0O2wJBQhII3IzgApemOm5ahLUX/xxx/yyy/image0.png., ResponseErrorDomain=com.google.HTTPStatus, ResponseErrorCode=403}
Additional info
Same rules are working good in real Storage. Also 'request.auth' is working well in Firestore emulator.
The text was updated successfully, but these errors were encountered: