Skip to content

Commit 29dca26

Browse files
committed
Inform caller that NLog endpoint also requires authorization
1 parent 13413f6 commit 29dca26

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ArchiSteamFarm/IPC/OpenApi/DocumentTransformer.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,15 @@ public Task TransformAsync(OpenApiDocument document, OpenApiDocumentTransformerC
9494
}
9595
},
9696

97+
Security = new List<OpenApiSecurityRequirement>(1) {
98+
new() {
99+
{
100+
new OpenApiSecuritySchemeReference(nameof(GlobalConfig.IPCPassword), document),
101+
[]
102+
}
103+
}
104+
},
105+
97106
Summary = nlogEndpont.ActionDescriptor.EndpointMetadata.OfType<EndpointSummaryAttribute>().FirstOrDefault()?.Summary,
98107

99108
Tags = new HashSet<OpenApiTagReference>(1) { new("NLog", document) }

0 commit comments

Comments
 (0)