All Downloads are FREE. Search and download functionalities are using the official Maven repository.

endpoints.documented.delegate.BasicAuthentication.scala Maven / Gradle / Ivy

There is a newer version: 0.10.1
Show newest version
package endpoints
package documented
package delegate

import endpoints.algebra.BasicAuthentication.Credentials

/**
  * Interpreter for [[algebra.BasicAuthentication]] that delegates to
  * another [[endpoints.algebra.BasicAuthentication]] interpreter.
  */
trait BasicAuthentication
  extends algebra.BasicAuthentication
    with Endpoints {

  val delegate: endpoints.algebra.BasicAuthentication

  private[endpoints] def basicAuthentication: RequestHeaders[Credentials] =
    delegate.basicAuthentication

  private[endpoints] def authenticated[A](response: Response[A], documentation: String): Response[Option[A]] =
    delegate.authenticated(response)

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy