Skip to content

ChristianMcFarlaneWork/FirebaseAuthRepro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FirebaseAuthRepro

This is an example repro for the issue firebase/quickstart-unity#1115. Which outlines that when on iOS attempting to do any read from storage that requires the auth token to not be null will fail with an 'User' is not authorized to perform the desired action exception regardless of their authentication state.

Setup Required

  • A firebase project which has Auth with Anonymous Login Enabled, Firestore and Storage set up
  • Firestore with any kind of security rules which check for the user auth state. Our settings.
  • Storage with any kind of security rules which check for the user auth state. Our settings.
  • Import [Auth, Storage, Firestore] 8.1.0 SDKs
  • Import your google-services.json + google-services.plist into the assets folder.
  • Open up Scenes/Repro
  • Select the gameobject ReproCanvas/FirestoreArea and setup what data you want to read + write (Document Fields do not matter). Our Inspector + Our Database
  • Select the gameobject ReproCanvas/StorageArea and setup the data you want to read + write (Content of the files does not matter). Our Inspector + Our Database
  • Finally make and deploy an iOS build, and run the app.
  • Notice that only Storage read fails, even though everything else succeeds and the database should allow for the data.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages