from
inline fun <P : Any> from(provider: AuthenticationProvider, onUnauthorized: UnauthorizedHandler?): SimpleAuthenticationScheme<P>(source)
Creates a AuthenticationScheme with principal type P and no additional context.
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.