Skip to content

Commit

Permalink
Refactor default values for security values
Browse files Browse the repository at this point in the history
  • Loading branch information
Evans Aboge (from Dev Box) committed Jan 17, 2025
1 parent e89c51f commit 33d06ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Kiota.Builder/KiotaBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ private void AddHttpSecurity(CodeClass codeClass, OpenApiSecurityScheme security
{
Type = new CodeType { Name = Authentication.Basic.ToString(), IsExternal = true },
Kind = CodePropertyKind.Headers,
DefaultValue = $"{securityScheme.Scheme}Auth"
DefaultValue = "basicAuth"
}
);
}
Expand All @@ -616,7 +616,7 @@ private void AddApiKeySecurity(CodeClass codeClass, OpenApiSecurityScheme securi
{
Type = new CodeType { Name = Authentication.APIKey.ToString(), IsExternal = true },
Kind = CodePropertyKind.Headers,
DefaultValue = $"{securityScheme.Scheme}Auth"
DefaultValue = "apiKeyAuth"
}
);
}
Expand All @@ -628,7 +628,7 @@ private void AddOAuth2Security(CodeClass codeClass, OpenApiSecurityScheme securi
{
Type = new CodeType { Name = Authentication.OAuthV2.ToString(), IsExternal = true },
Kind = CodePropertyKind.Headers,
DefaultValue = $"{securityScheme.Scheme}Auth"
DefaultValue = "bearerAuth"
}
);
}
Expand Down

0 comments on commit 33d06ae

Please sign in to comment.