The process of authenticating an HTTP request by Apache2.4/HTTPD

http的认证请求过程梳理,英文描述,后续慢慢补充修改。

流程图用UML简单画的:


 【The process of authenticating an HTTP request by Apache2.4/HTTPD.】

While some web client today defer to another service to handle the authentication,
most still support a form based authentication by default.
The process :
The first,Client sends a TCP SYNchronize packet to Server
Server receives Client's SYN
Server sends a SYNchronize-ACKnowledgement
Client receives Server's SYN-ACK
Client sends ACKnowledge
Serverreceives ACK.
TCP socket connection is ESTABLISHED.
During the registration, the password is sent (ideally over HTTPS) to the server.
This password is then salted and hashed using bcrypt (or equivalent) and stored for further use by the server.
A salt known only by this application instance is used to prevent brute force in case the password’s hashes
get leaked (via a sql injection for example).
During login is sent in a similar fashion than the setup,
the server hash it and compare it with the stored version.
If they match the server store a session token that is send back as a cookie (or url parameter)
and set on the client side. This cookie is produced by the client for each requests for the duration
of the session (until the cookie expires, the user logout or the server terminate the session).

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值