toggle menu
http4k
5.47.0.0
jvm
switch theme
search in API
http4k-contract
/
org.http4k.contract.security
/
BasicAuthSecurity
Basic
Auth
Security
class
BasicAuthSecurity
:
Security
Members
Members & Extensions
Constructors
Basic
Auth
Security
Link copied to clipboard
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
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
filter
Link copied to clipboard
open
override
val
filter
:
Filter
name
Link copied to clipboard
val
name
:
String
Functions
and
Link copied to clipboard
fun
Security
.
and
(
that
:
Security
)
:
Security
or
Link copied to clipboard
fun
Security
.
or
(
that
:
Security
)
:
Security