Class RoleScopeAssignmentProps

Assembly: redb.Identity.Core.dll

B.3 (permission picker) — role → OAuth scope binding. One row per
(role, scope) pair. Drives the per-role permission set: every effective
role's attached scopes are unioned into the principal scope set at
token issuance, so a user inheriting role X automatically requests
scope orders.read when their token is minted.

Stored shape: parent_id = role's _objects.id (lets us list
every scope of a role in a single indexed scan), value_long +
key = scope's _objects.id. Same uniqueness pattern as
UserRoleAssignmentProps: idempotent attach (server-side dedupe by
(parent_id, key)) without a separate UNIQUE check.

[RedbScheme("identity.role_scope_assignment")]
public class RoleScopeAssignmentProps

Inheritance

Object→RoleScopeAssignmentProps

Properties

AttachedAt

public DateTimeOffset AttachedAt { get; set; }

AttachedByUserId

Optional — id of the operator who attached the scope.

public long? AttachedByUserId { get; set; }