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

xitrum.action.BasicAuth.scala Maven / Gradle / Ivy

There is a newer version: 3.28.18
Show newest version
package xitrum.action

import xitrum.Action

trait BasicAuth {
  this: Action =>

  /**
   * @param authenticator takes username and password, returns true if it want
   * to let the user in.
   */
  def basicAuth(realm: String)(authenticator: (String, String) => Boolean): Boolean =
    xitrum.handler.inbound.BasicAuth.basicAuth(handlerEnv, realm)(authenticator)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy