Zum Hauptinhalt springen

CkWritePrincipals

Namespace: Meshmakers.Octo.ConstructionKit.Contracts.DataTransferObjects

The principal kinds of a CkTypeWriteAccessDto. The values are PascalCase, exactly as authored; any other value is rejected by the compiler (message 143).

public static class CkWritePrincipals

Inheritance Object → CkWritePrincipals

Fields​

Interactive​

A human user signed in interactively (authorization code / device flow).

public static string Interactive;

Client​

A service principal authenticated with client credentials.

public static string Client;

Methods​

IsKnown(String)​

True for a supported principal kind (ordinal).

public static bool IsKnown(string principal)

Parameters​

principal String

Returns​

Boolean

IsValidChannel(String)​

True when channel has the form <namespace>/<name>: a namespace of dot-separated identifiers (letters, digits, underscore; starting with a letter), a slash and a name of the same characters. Anchored with \z, so a trailing newline (e.g. from a YAML block scalar) is refused.

public static bool IsValidChannel(string channel)

Parameters​

channel String

Returns​

Boolean