Add EndpointAuthId to support endpoint authentication

Introduced a new `EndpointAuthId` property in `RecActionController` and `CreateRecActionCommand` to enable handling of endpoint authentication. Updated the `RecActionController` to initialize `EndpointAuthId` with a default value of `1`. Modified the `CreateRecActionCommand` record to include a nullable `EndpointAuthId` property of type `long?`, allowing optional specification of authentication details.
This commit is contained in:
2025-12-03 13:43:08 +01:00
parent 94561fe014
commit 1a0da4140b
2 changed files with 4 additions and 1 deletions

View File

@@ -54,7 +54,8 @@ public class RecActionController(IMediator mediator) : ControllerBase
Type = type,
BodyQuery = $@"SELECT '{bodyJson ?? "NULL"}' AS REQUEST_BODY;",
HeaderQuery = headerJson is not null ? $@"SELECT '{headerJson}' AS REQUEST_HEADER;" : null,
Active = true
Active = true,
EndpointAuthId = 1
}, cancel);
return CreatedAtAction(nameof(CreateFakeAction), null);