TSecAuthService

tsec.authentication.package$.TSecAuthService$

Attributes

Source
package.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[I, A, F[_]](pf: PartialFunction[SecuredRequest[F, I, A], F[Response[F]]])(implicit F: Monad[F]): TSecAuthService[I, A, F]

Lifts a partial function to an TSecAuthedService.

Lifts a partial function to an TSecAuthedService. Responds with org.http4s.Response.notFound, which generates a 404, for any request where pf is not defined.

Attributes

Source
package.scala
def apply[I, A, F[_]](pf: PartialFunction[SecuredRequest[F, I, A], F[Response[F]]], andThen: (Response[F], A) => OptionT[F, Response[F]])(implicit F: Monad[F]): TSecAuthService[I, A, F]

Attributes

Source
package.scala
def defaultOnNotAuthorized[F[_], I, A](unused: SecuredRequest[F, I, A])(implicit F: Monad[F]): OptionT[F, Response[F]]

Attributes

Source
package.scala
def empty[A, I, F[_] : Applicative]: TSecAuthService[I, A, F]

The empty service (all requests fallthrough).

The empty service (all requests fallthrough).

Type parameters

A

- Ignored

F

- Ignored

I

- Ignored

Attributes

Returns
Source
package.scala
def withAuthorization[I, A, F[_]](auth: Authorization[F, I, A])(pf: PartialFunction[SecuredRequest[F, I, A], F[Response[F]]])(implicit F: Monad[F]): TSecAuthService[I, A, F]

Attributes

Source
package.scala
def withAuthorizationF[I, A, F[_]](auth: F[Authorization[F, I, A]])(pf: PartialFunction[SecuredRequest[F, I, A], F[Response[F]]])(implicit F: Monad[F]): TSecAuthService[I, A, F]

Attributes

Source
package.scala
def withAuthorizationFHandler[I, A, F[_]](auth: F[Authorization[F, I, A]])(pf: PartialFunction[SecuredRequest[F, I, A], F[Response[F]]], onNotAuthorized: SecuredRequest[F, I, A] => OptionT[F, Response[F]])(implicit F: Monad[F]): TSecAuthService[I, A, F]

Attributes

Source
package.scala
def withAuthorizationHandler[I, A, F[_]](auth: Authorization[F, I, A])(pf: PartialFunction[SecuredRequest[F, I, A], F[Response[F]]], onNotAuthorized: SecuredRequest[F, I, A] => OptionT[F, Response[F]])(implicit F: Monad[F]): TSecAuthService[I, A, F]

Attributes

Source
package.scala