Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
stanmancan
· 11y ago · 0 comments
If you're authenticating with a username and password on every request you're doing something wrong. Once a user is logged in you should be setting a cookie, session, or some other token to identify the user.
Comments
[–]
ryan-c
11y ago
I believe HTTP basic auth checks the username and password on every request. It's pretty rarely used these days though.
[–]
artursapek
11y ago
Only for secret admin tools :D
[–]
giaour
11y ago
A fair number of APIs offer basic auth, even in 2015.
[–]
carbocation
11y ago
Hell, the Reddit API uses basic auth in 2015.
[–]
stanmancan
OP
11y ago
Yikes... I guess I've been pretty lucky with the API's I've had to work with in the past, I can't recall ever coming across this.