ihp-1.4.0: Haskell Web Framework
Copyright(c) digitally induced GmbH 2020
Safe HaskellNone
LanguageGHC2021

IHP.Controller.BasicAuth

Description

 
Synopsis

Documentation

basicAuth :: (?request :: Request) => Text -> Text -> Text -> IO () Source #

Adds basic http authentication

Mainly for protecting a site during external review. Meant for use in the controller:

beforeAction = basicAuth ...