TapirAuth

object TapirAuth
class Object
trait Matchable
class Any

Type members

Classlikes

object oauth2

Value members

Concrete methods

def apiKey[T](input: Single[T], challenge: WWWAuthenticateChallenge): Auth[T, ApiKey]

Reads authorization data from the given input.

Reads authorization data from the given input.

def basic[T : ([T] =>> Codec[List[String], T, TextPlain])](challenge: WWWAuthenticateChallenge): Auth[T, Http]

Reads authorization data from the Authorization header, removing the Basic prefix. To parse the data as a base64-encoded username/password combination, use: basic[UsernamePassword]

Reads authorization data from the Authorization header, removing the Basic prefix. To parse the data as a base64-encoded username/password combination, use: basic[UsernamePassword]

See also

UsernamePassword

def bearer[T : ([T] =>> Codec[List[String], T, TextPlain])](challenge: WWWAuthenticateChallenge): Auth[T, Http]

Reads authorization data from the Authorization header, removing the Bearer prefix.

Reads authorization data from the Authorization header, removing the Bearer prefix.

def http[T : ([T] =>> Codec[List[String], T, TextPlain])](authScheme: String, challenge: WWWAuthenticateChallenge): Auth[T, Http]