forked from loafle/openapi-generator-original
[dart][dart-dio] Allow API key authentication with multiple API keys (#8728)
Remove the break stopping after the first key.
This commit is contained in:
@@ -20,7 +20,6 @@ class ApiKeyAuthInterceptor extends AuthInterceptor {
|
||||
} else {
|
||||
options.headers[authKeyName] = apiKey;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return super.onRequest(options);
|
||||
|
||||
@@ -26,7 +26,6 @@ class ApiKeyAuthInterceptor extends AuthInterceptor {
|
||||
} else {
|
||||
options.headers[authKeyName] = apiKey;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return super.onRequest(options);
|
||||
|
||||
@@ -26,7 +26,6 @@ class ApiKeyAuthInterceptor extends AuthInterceptor {
|
||||
} else {
|
||||
options.headers[authKeyName] = apiKey;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return super.onRequest(options);
|
||||
|
||||
@@ -26,7 +26,6 @@ class ApiKeyAuthInterceptor extends AuthInterceptor {
|
||||
} else {
|
||||
options.headers[authKeyName] = apiKey;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return super.onRequest(options);
|
||||
|
||||
Reference in New Issue
Block a user