Skip to content
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

🐛 [firebase_app_check] Allow manual setting of app check token in debug mode #12376

Closed
jt274 opened this issue Feb 22, 2024 · 3 comments
Closed
Labels
platform: all Issues / PRs which are for all platforms. plugin: app_check type: enhancement New feature or request type: missing-feature A feature that is supported on the underlying Firebase SDK but has not been exposed to Dart API.

Comments

@jt274
Copy link

jt274 commented Feb 22, 2024

In the Android and iOS sections of the App Check docs, there are instructions to configure the App Check debug provider for unit testing in a CI environment. Links:

https://firebase.google.com/docs/app-check/android/debug-provider#ci
https://firebase.google.com/docs/app-check/ios/debug-provider#ci

There are no similar instructions or available methods for App Check in flutter. This makes it difficult to perform an automated test on an app that requires App Check in multiple environments, such as real devices or emulators in Firebase Test Lab. In these situations, a token is printed to console and must be manually added to the Firebase console for each device, instead of all sharing the same token.

The feature should be added to the flutter package as simply as possible. For example:

FirebaseAppCheck.instance.setDebugProviderToken(MY_TOKEN);

@jt274 jt274 added Needs Attention This issue needs maintainer attention. type: enhancement New feature or request labels Feb 22, 2024
@darshankawar darshankawar added triage Issue is currently being triaged. type: missing-feature A feature that is supported on the underlying Firebase SDK but has not been exposed to Dart API. plugin: app_check and removed Needs Attention This issue needs maintainer attention. triage Issue is currently being triaged. labels Feb 23, 2024
@Lyokone Lyokone added the platform: all Issues / PRs which are for all platforms. label Mar 19, 2024
@marcellocamara
Copy link

marcellocamara commented Jun 30, 2024

@jt274
FirebaseAppCheck.instance.setDebugProviderToken(MY_TOKEN);

This method will allow us to simplify the use of the same token in a project with many developers.
Adds token by token (each developer generating one), it's a bad way.
Imagine that every time I create a new emulator I need to register the new token in the Firebase Console 😞

@darshankawar or @russellwheatley any plans to launch this feature ? Is this on the radar?

@adonisRodxander
Copy link

adonisRodxander commented Oct 9, 2024

Any updates or workarount? @darshankawar or @russellwheatley

@russellwheatley
Copy link
Member

Hey folks, this is actually a duplicate of this issue: #11719

Could you please add your thumbs up on that issue. We are considering this feature so it is worth your time. Thanks 🙏

@firebase firebase locked and limited conversation to collaborators Dec 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform: all Issues / PRs which are for all platforms. plugin: app_check type: enhancement New feature or request type: missing-feature A feature that is supported on the underlying Firebase SDK but has not been exposed to Dart API.
Projects
None yet
Development

No branches or pull requests

6 participants