You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Basic Authentication with libhttpserver v0.9.0 #102
We are adding "basic authentication" in our REST server. Our first implementation was to use the methods "req.get_user()" and "req.get_pass()" in each request received and to check if it was received a valid user. This works correctly but we faced that we have to copy the same code in every "render_*" of our application.
This could be a problem. If some developer, by mistake, forgot to add the user validation, then someone could execute actions against that resource.
Please, could you tell me the libhttpserver provides some mechanism in order to unify the user validation in only one place?
Activity
Add centralized authentication handler (issue #102)
Add centralized authentication handler (issue #102)
Add centralized authentication handler (issue #102) (#359)