dart-lang/labs

Anonymous client

vaind opened this issue · 1 comments

vaind commented

Is there an equivalent of python's create_anonymous_client() to connect to a storage bucket that provides public access?

vaind commented

Never mind, I've been able to figure this out - one just needs to create a plain unauthenticated http.Client:

    final gstorage = Storage(Client(), '');
    final bucket = gstorage.bucket('bucket-name');