Handbook
Glossary
users-in-memory
Furnace framework
»
Furnace authentication
»
Authentication providers
»
In-memory authentication provider
Next:
<users-in-memory> ( -- provider )
Vocabulary
furnace
.
auth
.
providers
.
assoc
Definition
IN:
furnace.auth.providers.assoc
TUPLE:
users-in-memory
assoc
;
Methods
USING:
accessors
assocs
furnace.auth.providers
furnace.auth.providers.assoc
;
M:
users-in-memory
get-user
assoc>>
at
;
USING:
accessors
assocs
furnace.auth.providers
furnace.auth.providers.assoc
kernel
;
M:
users-in-memory
new-user
[
dup
username>>
]
dip
assoc>>
2dup
key?
[
3drop
f
]
[
pick
[
set-at
]
dip
]
if
;
USING:
furnace.auth.providers
furnace.auth.providers.assoc
kernel
;
M:
users-in-memory
update-user
2drop
;