---
title: Cratis Arc identity enrichment
editUrl: https://github.com/Cratis/Arc/edit/main/Documentation/backend/csharp/identity/index.md
description: Cratis Arc adds application-specific display details to an authenticated principal for the frontend, while backend authorization stays separate.
lastUpdated: 2026-11-05T00:00:00.000Z
---


Cratis Arc identity enrichment adds application-specific details, such as a display name, to the identity your frontend shows. It starts from the authenticated request principal, the server-side representation of the caller, and returns presentation data through `/.cratis/me`. It does not validate or modify the authentication provider's token.

## Overview

Use an `IProvideIdentityDetails` implementation when the frontend needs information that the authenticated principal does not contain. Arc invokes it for each authenticated identity request and combines its details with the principal's identity and roles. Without a custom provider, `DefaultIdentityDetailsProvider` allows authenticated callers through this step and returns empty details.

A custom provider can also check whether an authenticated user may enter the application. Returning `IsUserAuthorized = false` makes `/.cratis/me` answer 403. That decision controls the identity response, not access to individual commands or queries. Protect those operations with [pipeline authorization](/arc/backend/csharp/core/authorization/).

```mermaid
flowchart LR
    A[Authenticated Request Principal] --> B[Fresh Identity Enrichment]
    B --> C{Authorized?}
    C -- No --> D[HTTP 403]
    C -- Yes --> E[Identity Details JSON]
    E --> F["/.cratis/me response"]
    F --> G[Frontend Identity Consumption]
```

:::caution
The identity is presentation data. Do not use its flags, roles, or details in place of backend authorization. See [provider flow](/arc/backend/csharp/identity/provider-flow/) and [trust](/arc/backend/csharp/identity/identity-provider-service/#trust). Arc no longer uses the `.cratis-identity` cookie; see [migrating from the identity cookie](/arc/backend/csharp/identity/migrating-from-the-identity-cookie/).
:::

## Topics

| Topic | Description |
| --- | --- |
| [Provider Flow](/arc/backend/csharp/identity/provider-flow/) | Add display details and understand the responses from `/.cratis/me`. |
| [Identity Contracts](/arc/backend/csharp/identity/contracts/) | Look up the provider's `IdentityProviderContext` input and `IdentityDetails` output. |
| [IdentityProvider Service](/arc/backend/csharp/identity/identity-provider-service/) | Read identity presentation data in backend code or change the current response. |
| [Development and Topologies](/arc/backend/csharp/identity/development-and-topologies/) | Supply development user and tenant rosters, or plan cross-service composition. |
| [Migrating from the Identity Cookie](/arc/backend/csharp/identity/migrating-from-the-identity-cookie/) | Move cookie readers to the endpoint and handle mixed package versions. |
