Skip to content

Connectum API Reference / @connectum/auth / proto / ServiceAuth

Type Alias: ServiceAuth

ServiceAuth = Message<"connectum.auth.v1.ServiceAuth"> & object

Defined in: packages/auth/gen/connectum/auth/v1/options_pb.d.ts:81

Default authorization configuration for all methods in a service.

Type Declaration

defaultPolicy

defaultPolicy: string

Default policy when no rule matches. Valid values: "allow", "deny".

Generated

from field: optional string default_policy = 1;

defaultRequires?

optional defaultRequires?: AuthRequirements

Default access requirements applied to all methods unless overridden at the method level.

Generated

from field: optional connectum.auth.v1.AuthRequirements default_requires = 2;

internal

internal: boolean

Mark all methods in the service as internal (service-to-service). Skips end-user (JWT) authentication, but requires an internal trust marker established by createInternalAuthInterceptor. Method-level internal overrides this. See ADR-029.

Generated

from field: optional bool internal = 4;

public

public: boolean

Mark all methods in the service as public (skip authentication and authorization).

Generated

from field: optional bool public = 3;

Generated

from message connectum.auth.v1.ServiceAuth