Skip to content

Authn和Authz,还有不清不楚的Auth #294

@yaofly2012

Description

@yaofly2012

背景

在开发过程中总是遇到Auth缩写的变量,在不同的上下文里表示不同的含义,有时表示认证有时表示授权。最近看技术文档时发现了一个新名词authn,于是就Google了下,发现之前对"Auth"变量的命名都不合理。

AuthN vs AuthZ

  1. AuthN是的Authentication缩写,即认证。
  2. AuthZAuthorization的缩写,即授权。
  3. 在身份和权限管理系统中(Identity and Access Management (IAM))两者是不同的阶段:
  • AuthN是IAM中的 I
  • AuthZ是IAM中的 AM

参考:

  1. Authn vs. authz: How are they different?
  2. AuthN vs AuthZ
  3. Authentication vs Authorization – What's the Difference?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions