ResearchCave Technology

ResearchCave.Organizations.Client (1.0.0)

Published 2026-10-10 22:23:50 +03:00 by admin

Installation

dotnet nuget add source --name ResearchCave --username your_username --password your_token https://git.researchcave.com/api/packages/ResearchCave/nuget/index.json
dotnet add package --source ResearchCave --version 1.0.0 ResearchCave.Organizations.Client

About this package

Typed API client for ResearchCave Organizations.

ResearchCave.Organizations.Client

Register the typed client with the top-level Organizations configuration section:

builder.Services.AddResearchCaveOrganizationsClient(builder.Configuration);

Use the immutable AuthServer subject ID for authorization checks:

var decision = await organizations.CanActAsAsync(
    organizationId,
    subjectId,
    OrganizationPermissions.CreatePosts,
    cancellationToken);

Public organization reads work anonymously. Protected membership and authorization calls use the configured AuthServer client credentials when UseServiceAuthentication is enabled; the client must be granted organizations.read (and organizations.verify for verification writes).

Shared active actor

IOrganizationActorContext reads and writes the domain-wide rc.actor cookie. The cookie is only a profile preference; ResolveAsync validates active membership through Organizations before returning an organization actor. On localhost the cookie is host-wide (and therefore shared across ports); production defaults to .researchcave.com.

Dependencies

ID Version Target Framework
ResearchCave.Common 1.1.67 net10.0
Details
NuGet
2026-10-10 22:23:50 +03:00
6
ResearchCave.Organizations.Client
45 KiB
Assets (2)
Versions (1) View all
1.0.0 2026-10-10