Glad you've asked Ben :-) You should use mg_set_auth_handler() function which I have added<https://github.com/cesanta/mongoose/commit/f977757a9d5950c097365e1cb90f6cce05f0238a>about 5 minutes ago :-)
Modified auth.c is at https://github.com/cesanta/mongoose/blob/master/examples/auth.c Note that auth handler could be sensitive to URI, and authorize only certain URIs against the passwords file, for example those start with "/secret". I assume that function fulfills your needs, let me know if it doesn't. Sergey. -- You received this message because you are subscribed to the Google Groups "mongoose-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mongoose-users. For more options, visit https://groups.google.com/groups/opt_out.
