You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8f95461
Browse filesBrowse the repository at this point in the historyBrowse files
feat(cloud_functions): expose allowInsecureTokenAttachment for Apple debug builds (#18734)
* feat(cloud_functions): expose allowInsecureTokenAttachment for Apple debug builds
Physical devices cannot send Auth and App Check tokens to a Functions emulator on a LAN address unless the Apple SDK debug opt-in is set.
* style(cloud_functions): format the insecure token attachment test
Copy file name to clipboardExpand all lines: packages/cloud_functions/cloud_functions/ios/cloud_functions/Sources/cloud_functions/FirebaseFunctionsPlugin.swift
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,11 @@ public class FirebaseFunctionsPlugin: NSObject, FLTFirebasePluginProtocol, Flutt
Copy file name to clipboardExpand all lines: packages/cloud_functions/cloud_functions/ios/cloud_functions/Sources/cloud_functions/FunctionsStreamHandler.swift
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,11 @@ class FunctionsStreamHandler: NSObject, FlutterStreamHandler {
Copy file name to clipboardExpand all lines: packages/cloud_functions/cloud_functions_platform_interface/lib/src/method_channel/method_channel_https_callable.dart
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,7 @@ class MethodChannelHttpsCallable extends HttpsCallablePlatform {
Copy file name to clipboardExpand all lines: packages/cloud_functions/cloud_functions_platform_interface/lib/src/platform_interface/platform_interface_firebase_functions.dart
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,12 @@ abstract class FirebaseFunctionsPlatform extends PlatformInterface {
39
39
/// The region for the HTTPS trigger, such as "us-central1".
40
40
finalString region;
41
41
42
+
/// Whether Auth, FCM, and App Check tokens may be sent over plain HTTP to a
43
+
/// non-loopback host.
44
+
///
45
+
/// Only Apple debug builds consult this value. Android and web ignore it.
46
+
bool allowInsecureTokenAttachment =false;
47
+
42
48
/// The current default [FirebaseFunctionsPlatform] instance.
43
49
///
44
50
/// It will always default to [MethodChannelFirebaseFunctions]
Copy file name to clipboardExpand all lines: packages/cloud_functions/cloud_functions_platform_interface/test/method_channel/method_channel_https_callable_test.dart
0 commit comments