YoYoGames / GMEXT-Firebase

Repository for GameMaker's Firebase Extension
Other
9 stars 6 forks source link

Add Firebase App Check #34

Open Foxtrio opened 2 months ago

Foxtrio commented 2 months ago

Firebase App Check provides security layer to the Firebase tools and make sure that all requests are from legit sources.

I am looking for a solution to restrict all Firebase tools from unauthorised sources. (Firestore f.ex)

jzavala-YYG commented 1 week ago

@YYBartT

Setup

iOS https://firebase.google.com/docs/app-check/ios/app-attest-provider -App Attest

Android https://firebase.google.com/docs/app-check/android/play-integrity-provider -Play Integrity

Debug Mode

This Firebase module was created in 2 extensions YYFirebaseAppCheck and YYFirebaseAppCheck_Debug. if you enable one extension you should disable the other, by default YYFirebaseAppCheck_Debug it's enabled


//Requests a Firebase App Check token. This method should be used ONLY if you need to authorize requests to a non-Firebase backend. Requests to Firebase backends are authorized automatically if configured. void FirebaseAppCheck_GetToket(double _force_refresh) token: string success: bool


//Requests a Firebase App Check token. This method should be used ONLY if you need to authorize requests to a non-Firebase backend.

Returns limited-use tokens that are intended for use with your non-Firebase backend endpoints that are protected with Replay Protection. This method does not affect the token generation behavior of the FirebaseAppCheck_GetToket method. void FirebaseAppCheck_LimitedUseToken() token: string success: bool