Web-based responsive document annotation tool
activeannoservice / common / io.ktor.util.pipeline.PipelineContext
| Name | Summary |
|---|---|
| jwt | Extension value to easily access the DecodedJWT from the callval PipelineContext<Unit, ApplicationCall>.jwt: DecodedJWT |
| protectedByRole | Higher order function that will check for authorization by checking the JWT roles against a list of required roles. If only one role must match, use the onlyOneMustMatch parameter to truesuspend fun PipelineContext<Unit, ApplicationCall>.protectedByRole(requiredRoles: List<String>, onlyOneMustMatch: Boolean = false, block: suspend () -> Unit): Unit |
| validateRole | Extension function on a PipelineContext to validate a role and return true if the user is authorized, false otherwisefun PipelineContext<Unit, ApplicationCall>.validateRole(requiredRoles: List<String>, onlyOneMustMatch: Boolean = false): Boolean |