from

Creates a AuthenticationScheme with principal type P and no additional context.

Report a problem

Return

a simple typed authentication scheme with principal type P.

Parameters

provider

named authentication provider used by the scheme.

onUnauthorized

default failure handler, or null to use the provider challenge.