Skip to content

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 Interface SAIF.NetCore.LegacyAuth Defines the legacy credential-cookie contract: issue, clear, and raw-header-write operations.
LegacyAuthCookieService 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 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 Enum SAIF.NetCore.LegacyAuth Selects the DPAPI key scope (user or local machine) used to encrypt a payload.
DATA_BLOB Struct SAIF.NetCore.LegacyAuth A Win32 interop struct marshaling a byte buffer to and from the native CryptProtectData/CryptUnprotectData calls.
CRYPTPROTECT_PROMPTSTRUCT 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