requests_kerberos

该文讨论了在网络安全中mutual_authentication的三种设置:REQUIRED强制所有响应验证,除了错误信息;OPTIONAL尝试验证但允许失败;DISABLED则完全禁用验证。不成功的验证会导致异常,而不支持验证的响应会直接传递给用户。
摘要由CSDN通过智能技术生成

requests-kerberos-0.12.0\requests_kerberos\kerberos_.py

Different types of mutual authentication:
with mutual_authentication set to REQUIRED, all responses will be authenticated with the exception of errors.  Errors will have their contents and headers stripped.  If a non-error response cannot be authenticated, a MutualAuthenticationError exception will be raised.
with mutual_authentication set to OPTIONAL, mutual authentication will be attempted if supported, and if supported and failed, a MutualAuthenticationError exception will be raised.  Responses which do not support mutual authentication will be returned directly to the user.
with mutual_authentication set to DISABLED, mutual authentication will not be attempted, even if supported.

不同类型的相互认证:
如果将mutual_authentication设置为REQUIRED,则除错误外,所有响应都将被验证。错误的内容和标题将被删除。如果无法验证非错误响应,将引发MutualAuthenticationError异常。
如果mutual_authentication设置为OPTIONAL,如果支持,将尝试相互身份验证,如果支持且失败,将引发MutualAuthenticationError异常。不支持相互身份验证的响应将直接返回给用户。
如果mutual_authentication设置为DISABLED,即使支持互认证,也不会尝试。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值