Handbook
Glossary
get-user ( username provider -- user/f )
Furnace framework
»
Furnace authentication
»
Authentication providers
»
Authentication provider protocol
Prev:
user
Next:
new-user ( user provider -- user/f )
Vocabulary
furnace
.
auth
.
providers
Inputs
username
a
string
provider
an authentication provider
Outputs
user/f
an
user
or
f
Generic word contract
Looks up a username in the authentication provider.
Definition
IN:
furnace.auth.providers
GENERIC:
get-user
( username provider -- user/f )
Methods
USING:
furnace.auth.providers
furnace.auth.providers.couchdb
furnace.auth.providers.couchdb.private
kernel
namespaces
;
M:
couchdb-auth-provider
get-user
couchdb-auth-provider
[
(get-user)
[
user-hash>user
]
[
f
]
if*
]
with-variable
;
USING:
furnace.auth.providers
furnace.auth.providers.null
kernel
;
M:
no-users
get-user
2drop
f
;
USING:
db.tuples
furnace.auth.providers
furnace.auth.providers.db
kernel
;
M:
users-in-db
get-user
drop
<user>
select-tuple
;
USING:
accessors
assocs
furnace.auth.providers
furnace.auth.providers.assoc
;
M:
users-in-memory
get-user
assoc>>
at
;