Table of Contents

Namespace Arc4u.OAuth2.TicketStore

Classes

CacheTicketStore

An ITicketStore that keeps the authentication tickets in an Arc4u cache. Each ticket is stored under a key made of KeyPrefix and a new guid, encrypted with Data Protection (purpose DataProtectionPurpose): a ticket carries the user's access, id and refresh tokens, which must not be readable by whoever can read the cache.

CacheTicketStoreExtension

Registers the CacheTicketStore.

CacheTicketStoreOptions

Configures the CacheTicketStore.

FileTicketStore

An ITicketStore that keeps each authentication ticket in a file ({guid}.bin) of the directory configured in StorePath, encrypted with Data Protection (purpose DataProtectionPurpose): a ticket carries the user's access, id and refresh tokens, which must not be readable by whoever can read the directory. It is meant for a single instance application.

FileTicketStoreExtension

Registers the FileTicketStore.

FileTicketStoreOptions

Configures the FileTicketStore.

FreshSessionCookieManager

An ICookieManager that hides the authentication cookie from the cookie handler on the OpenID Connect callback (a POST to CallbackPath of the AuthenticationScheme scheme), so the sign-in that follows always stores the ticket under a new session key.

TicketStoreDataProtection

The Data Protection settings shared by CacheTicketStore and FileTicketStore.