ktor-auth / io.ktor.auth / AuthenticationRouteSelector

AuthenticationRouteSelector

class AuthenticationRouteSelector : RouteSelector

An authentication route node that is used by Authentication feature and usually created by Route.authenticate DSL function so generally there is no need to instantiate it directly unless you are writing an extension

Parameters

names - of authentication providers to be applied to this route

Constructors

<init>

AuthenticationRouteSelector(names: List<String?>)

An authentication route node that is used by Authentication feature and usually created by Route.authenticate DSL function so generally there is no need to instantiate it directly unless you are writing an extension

Properties

names

val names: List<String?>

of authentication providers to be applied to this route

Functions

evaluate

fun evaluate(context: RoutingResolveContext, segmentIndex: Int): RouteSelectorEvaluation

toString

fun toString(): String