Using HTTP Basic Auth in 2022
11–20 of 345 posts
Re: Using HTTP Basic Auth in 2022
#12Re: Using HTTP Basic Auth in 2022
#13Re: Using HTTP Basic Auth in 2022
#14How do you logout?
One downside is that in trivial implementation (/logout page returning 401), you'll end up with credential prompt where no credentials work, and this can be pretty confusing if someone leaves the compute in that state. I think it can be worked around with "expiration" URL parameter or a cookie, but this is somewhat finicky to setup.
Re: Using HTTP Basic Auth in 2022
#15I find HTTP basic auth very useful to "protect" gitlab, wiki, forum, et al. internal resources exposed to the internet. With a simple apache/nginx config it is possible effectively to hide those from the intenet and in addition to their built-in authentications (ldap-based) have a fense reliable enough to prevent zero-day vulnerabilities of these populular web applications. Having them as sub-folders of a single web-…
Re: Using HTTP Basic Auth in 2022
#16This is perfectly fine. Nothing to be ashamed of. At least you don’t need to create a logon form
But if you are rolling your own auth, you still need to create the signup, change password, reset password, confirm account, delete account, etc. pages. What's one more? Given that a logon form is >5% of the total amount of work to roll auth, seems kinda pointless to use this.
Re: Using HTTP Basic Auth in 2022
#17This is perfectly fine. Nothing to be ashamed of. At least you don’t need to create a logon form
But if you are rolling your own auth, you still need to create the signup, change password, reset password, confirm account, delete account, etc. pages. What's one more? Given that a logon form is >5% of the total amount of work to roll auth, seems kinda pointless to use this.
Re: Using HTTP Basic Auth in 2022
#18This has many flaws that make it impractical beyond hobby projects or projects with a small set of users: - It's trickier to throttle credential checks as every request is a login request, effectively - It's hard to easily build account recovery flows or captchas into the login process. - The UX of logging in/out is browser-dependent and confusing for users - it can't integrate well with other auth systems - Sending…
Re: Using HTTP Basic Auth in 2022
#19Re: Using HTTP Basic Auth in 2022
#20How do you logout?
Great question. This is a downside, there is no built-in method, but there are some tricks. If I remember correctly you can send headers with incorrect credentials. I’ll have to do some research and add that to my template.
Why browsers do not have better functionality built in for authentication is something that's always been a bit baffling...