Closed lholmquist closed 8 years ago
@lholmquist cansecurity is entirely server-side, in node. You request login credentials from the user in a client-side app / browser.
cansecurity doesn't understand the concept of "login" because there is no such concept.
Each and every request must contain valid credentials. Those can be one of:
For username and password, you receive the credentials from the standard HTTP Basic-Authentication header, and pass them to the validate()
method that was given during cansec.init()
. If it calls back with the first argument of true
, then the credentials are validated, else they are not.
See this part of the docs https://github.com/deitch/cansecurity#example
Does this answer your question?
Open several years, closing this out. If still an issue, please comment.
After ready the docs, i'm failing how to see how to actually log in.