Skip to content

Commit 5121dcb

Browse files
committed
CredentialsLocation to body
1 parent b96d38c commit 5121dcb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

BankApi.Core/Defaults/Builder.OpenApi.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public static void AddOpenApiScalarReference(this IEndpointRouteBuilder app)
3939
options.TokenUrl = $"https://login.microsoftonline.com/{GlobalConfiguration.ApiSettings!.EntraId.TenantId}/oauth2/v2.0/token";
4040
options.ClientId = GlobalConfiguration.ApiSettings!.EntraId.ClientId;
4141
options.ClientSecret = "fQB8Q~GkKsBaQFKnrTLEGXpRHWejyASJB6ZMGba~";
42+
options.CredentialsLocation = CredentialsLocation.Body;
4243
options.SelectedScopes = new List<string>
4344
{
4445
$"{GlobalConfiguration.ApiSettings!.EntraId.ClientId}/.default"
@@ -50,6 +51,7 @@ public static void AddOpenApiScalarReference(this IEndpointRouteBuilder app)
5051
options.TokenUrl = $"https://login.microsoftonline.com/{GlobalConfiguration.ApiSettings!.EntraId.TenantId}/oauth2/v2.0/token";
5152
options.RefreshUrl = $"https://login.microsoftonline.com/{GlobalConfiguration.ApiSettings!.EntraId.TenantId}/oauth2/v2.0/token";
5253
options.ClientId = GlobalConfiguration.ApiSettings!.EntraId.ClientId;
54+
options.CredentialsLocation = CredentialsLocation.Body;
5355
options.SelectedScopes = new List<string>
5456
{
5557
$"{GlobalConfiguration.ApiSettings!.EntraId.ClientId}/.default"

0 commit comments

Comments
 (0)