hhstore/blog

Auth: Authn vs Authz

hhstore opened this issue · 4 comments

related:

AuthN(Authentication) vs AuthZ(Authorization):

概念:

扩展:

AuthN:

参考:

方案:

  • ✅ Basic Auth(HTTP 基本认证): http + password
  • ✅ 基于 Session 的认证: http + cookie + session
  • ✅ Bearer Token 或者 Basic Auth Password
  • ✅ JWT(JSON WEB TOKEN)
  • ✅ OAuth (开放授权)
  • ✅ SSO
  • ✅ 硬件加密设备: hardware tokens (FIDO U2F tokens, RSA tokens, Yubikey)
  • ✅ 外部软件设备: mobile devices (SMS/call verification, push approvals, TOTP apps)
  • ✅ 生物芯片: 指纹/人脸识别等
  • ✅ Two-factor authentication: 2FA, TFA, second-factor authentication
  • ✅ Multi-factor authentication (MFA)

JWT:

AuthZ:

方案:

  • ✅ Role-based access control (RBAC): 基于角色的访问控制
  • ✅ Attribute-based access control (ABAC): 基于属性的访问控制