chore: only proxy auth plugin requests

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2023-01-12 17:40:30 +01:00
parent 2d831012fc
commit 023f74e963
+5 -1
View File
@@ -32,7 +32,11 @@ export class AuthProxyDiscoveryApi implements IDiscoveryApi {
}
async getBaseUrl(pluginId: string) {
if (this.isAuthProxyingEnabled && this.authProxyUrl) {
if (
pluginId === 'auth' &&
this.isAuthProxyingEnabled &&
this.authProxyUrl
) {
return this.authProxyUrl;
}