toggle menu
http4k
6.9.0.0
jvm
switch theme
search in API
http4k-security-core
/
org.http4k.security
/
BasicAuthSecurity
/
BasicAuthSecurity
Basic
Auth
Security
constructor
(
realm
:
String
,
credentials
:
Credentials
,
name
:
String
=
"basicAuth"
)
Checks the presence of basic auth credentials. Filter returns 401 if auth fails.
constructor
(
realm
:
String
,
credentials
:
(
Credentials
)
->
Boolean
)