Flutterfire: firebase_storage does not auth?

Created on 13 Oct 2019  路  6Comments  路  Source: FirebaseExtended/flutterfire

I have anonymous auth working.

Flutter: signed in! FirebaseUser({displayName: null, providerId: Firebase, uid: 6vj0tYIQsUSjsdiJfkjid37NhKk2, providerData: [], isEmailVerified: false, email: null, photoUrl: null, isAnonymous: true})

screen shot 2018-07-13 at 7 01 44 pm

And my rules are as follows

service firebase.storage {
  match /b/{bucket}/o {
    match /{allPaths=**} {
      allow read, write: if request.auth != null;
    }
  }
}

And I keep getting this error

screen shot 2018-07-13 at 7 02 38 pm

But if I change my rules to public

service firebase.storage {
  match /b/{bucket}/o {
    match /{allPaths=**} {
      allow read, write: if true;
    }
  }
}

It works!

screen shot 2018-07-13 at 7 03 56 pm

Any ideas what's going on?

    this.user = await this.auth.signInAnonymously();
    print("signed in! $user");

    await _getAllSocialImageUrls();
    print("got socialUrls! $socialUrls");
customer-response auth storage

All 6 comments

@lukepighetti

The issue at https://github.com/flutter/flutter/issues/19361 has been closed and moved here. Future collaboration on this issue will be done here.

Hey @lukepighetti - is this still an issue for you? Could you provide flutter doctor output if so, thanks

This issue went unaddressed for so long I can't even remember if it is still an issue or not haha.

This issue went unaddressed for so long I can't even remember if it is still an issue or not haha.

@lukepighetti understandable 馃槄 can we close this issue for the time being? We'll be adding e2e tests that should highlight if this is an issue

Yeah I would close it if I could but I'm not the OP anymore on this issue. :)

Yeah I would close it if I could but I'm not the OP anymore on this issue. :)

Cool, will close - thanks

Was this page helpful?
0 / 5 - 0 ratings