From 9aa0581b5de4925af36734fbb230af00f236d266 Mon Sep 17 00:00:00 2001 From: thewahome Date: Wed, 30 Oct 2024 13:09:40 +0300 Subject: [PATCH] support only implicit flow for oauth2 --- src/Kiota.Builder/Plugins/PluginsGenerationService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kiota.Builder/Plugins/PluginsGenerationService.cs b/src/Kiota.Builder/Plugins/PluginsGenerationService.cs index ef638601fa..a1971b579c 100644 --- a/src/Kiota.Builder/Plugins/PluginsGenerationService.cs +++ b/src/Kiota.Builder/Plugins/PluginsGenerationService.cs @@ -414,7 +414,7 @@ SecuritySchemeType.Http when securityScheme.Scheme.Equals("bearer", StringCompar { ReferenceId = $"{{{name}_REGISTRATION_ID}}" }, - SecuritySchemeType.OAuth2 => new OAuthPluginVault + SecuritySchemeType.OAuth2 when securityScheme.Flows.AuthorizationCode != null => new OAuthPluginVault { ReferenceId = $"{{{name}_CONFIGURATION_ID}}" },