Cohesive.Identity
0.1.0-alpha.3
This is a prerelease version of Cohesive.Identity.
dotnet add package Cohesive.Identity --version 0.1.0-alpha.3
NuGet\Install-Package Cohesive.Identity -Version 0.1.0-alpha.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cohesive.Identity" Version="0.1.0-alpha.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cohesive.Identity" Version="0.1.0-alpha.3" />
<PackageReference Include="Cohesive.Identity" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Cohesive.Identity --version 0.1.0-alpha.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Cohesive.Identity, 0.1.0-alpha.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Cohesive.Identity@0.1.0-alpha.3
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Cohesive.Identity&version=0.1.0-alpha.3&prerelease
#tool nuget:?package=Cohesive.Identity&version=0.1.0-alpha.3&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Cohesive.Identity
Identity context, scope resolution, and in-memory identity directory helpers for Cohesive applications.
Install
dotnet add package Cohesive.Identity
Use When
- You need to resolve operation context, principal identity, and scope references in a Cohesive application.
- You want a small in-memory identity directory for local development, tests, or bootstrap flows.
- You need identity-aware API or storage adapters to share the same operation context model.
Example
using Cohesive.Identity;
var directory = InMemoryIdentityDomainRepositoryFactory
.Create(new InMemoryIdentityDirectoryBuilder()
.AddScope(new("tenant-a", "tenant", "Tenant A"))
.AddPrincipal(new("user:alice", PrincipalKind.User, Email: "alice@example.com"))
.AddScopeGrant("user:alice", "tenant-a", "tenant", ["orders.read"], isDefaultScope: true)
.Build())
.CreateDirectory();
var principal = await directory.FindPrincipalAsync(new(Email: "alice@example.com"));
Related Packages
Cohesive.Adapters.AspNetfor request identity and API scope policy enforcement.Cohesive.Apifor scope-aware API declarations.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Cohesive (>= 0.1.0-alpha.3)
- Cohesive.Storage (>= 0.1.0-alpha.3)
- Cohesive.Transitions (>= 0.1.0-alpha.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Cohesive.Identity:
| Package | Downloads |
|---|---|
|
Cohesive.Adapters.AspNet
Cohesive semantic system definition and orchestration building blocks. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-alpha.3 | 44 | 7/8/2026 |
| 0.1.0-alpha.2 | 46 | 7/7/2026 |