Table of Contents

Class TenantRoleRegistry

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

Stores tenant role definitions and resolves scopes for assigned roles.

public class TenantRoleRegistry : ITenantRoleRegistry
Inheritance
TenantRoleRegistry
Implements
Inherited Members

Properties

All

public IReadOnlyList<TenantRoleDefinition> All { get; }

Property Value

IReadOnlyList<TenantRoleDefinition>

Methods

Get(string)

public TenantRoleDefinition Get(string roleName)

Parameters

roleName string

Returns

TenantRoleDefinition

GetScopesForRoles(IEnumerable<string>)

public IReadOnlyList<string> GetScopesForRoles(IEnumerable<string> roleNames)

Parameters

roleNames IEnumerable<string>

Returns

IReadOnlyList<string>

Register(string, params string[])

public void Register(string roleName, params string[] scopes)

Parameters

roleName string
scopes string[]

Register(string, string[], string)

Registers a tenant role with an optional human-readable description.

public void Register(string roleName, string[] scopes, string description)

Parameters

roleName string
scopes string[]
description string