Skip to content

Commit 7704ff3

Browse files
authored
[dart][dart-dio] Allow API key authentication with multiple API keys (#8728)
Remove the break stopping after the first key.
1 parent 55292dd commit 7704ff3

File tree

4 files changed

+0
-4
lines changed

4 files changed

+0
-4
lines changed

modules/openapi-generator/src/main/resources/dart-dio/auth/api_key_auth.mustache

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class ApiKeyAuthInterceptor extends AuthInterceptor {
2020
} else {
2121
options.headers[authKeyName] = apiKey;
2222
}
23-
break;
2423
}
2524
}
2625
return super.onRequest(options);

samples/client/petstore/dart-dio/petstore_client_lib/lib/auth/api_key_auth.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class ApiKeyAuthInterceptor extends AuthInterceptor {
2626
} else {
2727
options.headers[authKeyName] = apiKey;
2828
}
29-
break;
3029
}
3130
}
3231
return super.onRequest(options);

samples/openapi3/client/petstore/dart-dio/petstore_client_lib/lib/auth/api_key_auth.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class ApiKeyAuthInterceptor extends AuthInterceptor {
2626
} else {
2727
options.headers[authKeyName] = apiKey;
2828
}
29-
break;
3029
}
3130
}
3231
return super.onRequest(options);

samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/auth/api_key_auth.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class ApiKeyAuthInterceptor extends AuthInterceptor {
2626
} else {
2727
options.headers[authKeyName] = apiKey;
2828
}
29-
break;
3029
}
3130
}
3231
return super.onRequest(options);

0 commit comments

Comments
 (0)