-
Notifications
You must be signed in to change notification settings - Fork 1.2k
onCall Dart functions deploys with public access disabled #10225
Copy link
Copy link
Open
Labels
Description
[REQUIRED] Environment info
firebase-tools: 15.12.0
Platform: macOS
[REQUIRED] Test case
firebase.https.onCall(
name: 'onCallDemo',
options: const CallableOptions(
cors: Cors(['*']),
maxInstances: Instances(1),
),
(request, response) async {
print('I was called!');
final data = request.data as Map<String, dynamic>?;
final name = data?['name'] ?? 'World';
return CallableResult({'message': 'Hello, $name!'});
},
);[REQUIRED] Steps to reproduce
Deploy a callable Dart function, then check the "Security" tab in the Cloud Run console. In the "Authentication" card, "Require authentication" is selected.
[REQUIRED] Expected behavior
Public access is allowed by default
[REQUIRED] Actual behavior
"Require authentication" is selected
Reactions are currently unavailable