---
title: SAIF.NetCore.LegacyAuth API reference
summary: Index of all public types in this library.
status: draft
owner: Framework
last_reviewed: 2026-10-02
library: SAIF.NetCore.LegacyAuth
reference_type: package
---

# SAIF.NetCore.LegacyAuth API reference

This page lists all public types exposed by `SAIF.NetCore.LegacyAuth`. Each type links to its full API reference page.

## Types

| Type | Kind | Namespace | Purpose |
| --- | --- | --- | --- |
| [ILegacyAuthCookieService](SAIF.NetCore.LegacyAuth/ILegacyAuthCookieService.md) | Interface | `SAIF.NetCore.LegacyAuth` | Defines the legacy credential-cookie contract: issue, clear, and raw-header-write operations. |
| [LegacyAuthCookieService](SAIF.NetCore.LegacyAuth/LegacyAuthCookieService.md) | Class | `SAIF.NetCore.LegacyAuth` | Implements the cookie contract by building the credential payload, DPAPI-encrypting it, and writing or deleting the `SAIFAUTH` response cookie. |
| [DPAPI](SAIF.NetCore.LegacyAuth/DPAPI.md) | Class | `SAIF.NetCore.LegacyAuth` | A self-contained P/Invoke wrapper over the Windows Data Protection API (`CryptProtectData`/`CryptUnprotectData`) with UTF-8 and Base64 string helpers. |
| [KeyType](SAIF.NetCore.LegacyAuth/KeyType.md) | Enum | `SAIF.NetCore.LegacyAuth` | Selects the DPAPI key scope (user or local machine) used to encrypt a payload. |
| [DATA_BLOB](SAIF.NetCore.LegacyAuth/DATA_BLOB.md) | Struct | `SAIF.NetCore.LegacyAuth` | A Win32 interop struct marshaling a byte buffer to and from the native `CryptProtectData`/`CryptUnprotectData` calls. |
| [CRYPTPROTECT_PROMPTSTRUCT](SAIF.NetCore.LegacyAuth/CRYPTPROTECT_PROMPTSTRUCT.md) | Struct | `SAIF.NetCore.LegacyAuth` | A Win32 interop struct carrying marshaled prompt configuration (window handle, prompt text, flags) for the native DPAPI calls; the no-UI policy is enforced by the `CRYPTPROTECT_UI_FORBIDDEN` flag this library always passes, not by this struct alone. |

## Sources
- `src/SAIF.NetCore.LegacyAuth/src/SAIF.NetCore.LegacyAuth/SAIF.NetCore.LegacyAuth/ILegacyAuthCookieService.cs`
- `src/SAIF.NetCore.LegacyAuth/src/SAIF.NetCore.LegacyAuth/SAIF.NetCore.LegacyAuth/LegacyAuthCookieService.cs`
- `src/SAIF.NetCore.LegacyAuth/src/SAIF.NetCore.LegacyAuth/SAIF.NetCore.LegacyAuth/DPAPI.cs`
