Hi, I'm confused when trying to use Digest authent...
# ktor
a
Hi, I'm confused when trying to use Digest authentication with UserHashedTableAuth, I have a few questions from the example : • What type of string should I return inside the
getDigestFunction
lambda ? Is it a private environment variable or just a random pre-defined word ? • How should I use the
digestFunction
function, should I only use it with a
password
argument ? • How can I use the
UserHashedTableAuth
with a database ? Should I get all current users mapped as
"username" to digestFunction(userPassword)
? But how can I make this efficient with large scale ?
a
What type of string should I return inside the
getDigestFunction
lambda ? Is it a private environment variable or just a random pre-defined word?
A random pre-defined data.
How should I use the
digestFunction
function, should I only use it with a
password
argument ?
You can use this function to get the hash of a password
How can I use the
UserHashedTableAuth
with a database ? Should I get all current users mapped as
"username" to digestFunction(userPassword)
? But how can I make this efficient with large scale ?
I don't think you should use
UserHashedTableAuth
if the hashes of passwords are stored in a database.