Class BowireAuthGate

Namespace
Kuestenlogik.Bowire.Auth
Assembly
Kuestenlogik.Bowire.dll

Puts a mount behind the workbench's auth gate, if there is one (#625).

public static class BowireAuthGate
Inheritance
BowireAuthGate
Inherited Members

Remarks

BowireApiEndpoints applies the gate once to its own route group, and everything inside inherits it. Anything mounted outside that group — the MCP server, the MCP adapter — inherits nothing, and there is no compiler error when it forgets. On an install with an identity provider configured that meant the workbench and /api/* required a session while /mcp did not, even though MCP drives the same operations.

Calling this unconditionally is the intended use: without a registered provider it does nothing, which is the laptop default.

Methods

RequireBowireAuth<TBuilder>(TBuilder, IServiceProvider)

Require the workbench's default policy when an auth provider is registered; do nothing otherwise.

public static TBuilder RequireBowireAuth<TBuilder>(this TBuilder builder, IServiceProvider services) where TBuilder : IEndpointConventionBuilder

Parameters

builder TBuilder
services IServiceProvider

Returns

TBuilder

Type Parameters

TBuilder