Handbook
Glossary
basic-auth-realm
Furnace framework
»
Furnace authentication
»
Authentication realms
»
Basic authentication
Next:
<basic-auth-realm> ( responder name -- realm )
Vocabulary
furnace
.
auth
.
basic
Class description
The basic authentication realm class. Slots are described in
Authentication realm configuration
.
Definition
USING:
furnace.auth
;
IN:
furnace.auth.basic
TUPLE:
basic-auth-realm
<
realm
;
Methods
USING:
furnace.auth
furnace.auth.basic
kernel
;
M:
basic-auth-realm
init-realm
drop
;
USING:
furnace.auth
furnace.auth.basic
http
kernel
namespaces
;
M:
basic-auth-realm
logged-in-username
drop
request
get
"authorization"
header
parse-basic-auth
dup
[
over
check-login
swap
and
]
[
2drop
f
]
if
;
USING:
accessors
furnace.auth
furnace.auth.basic
kernel
;
M:
basic-auth-realm
login-required*
2nip
name>>
<401>
;