sttp.tapir.server.interceptor.SecurityFailureContext.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tapir-server_3 Show documentation
Show all versions of tapir-server_3 Show documentation
Core classes for server interpreters & interceptors
package sttp.tapir.server.interceptor
import sttp.tapir.Endpoint
import sttp.tapir.model.ServerRequest
import sttp.tapir.server.ServerEndpoint
case class SecurityFailureContext[F[_], A](
serverEndpoint: ServerEndpoint.Full[A, _, _, _, _, _, F],
securityInput: A,
request: ServerRequest
) {
def endpoint: Endpoint[A, _, _, _, _] = serverEndpoint.endpoint
}