Table of Contents

Interface IDemoIdentityService

Namespace
ReferenceApplication.Web.Authentication.Demo
Assembly
ReferenceApplication.Web.dll

Creates the fixed demonstration identity used to exercise walkthrough governance outcomes.

public interface IDemoIdentityService

Methods

CreatePrincipal(bool, bool)

Creates an authenticated demo principal with only the selected fixed claims.

ClaimsPrincipal CreatePrincipal(bool includeAdministratorRole, bool includeConsequentialCapability)

Parameters

includeAdministratorRole bool

Whether to add the configured administrator role.

includeConsequentialCapability bool

Whether to add the walkthrough capability grant.

Returns

ClaimsPrincipal

The demo principal.