1. 轻量级目录访问协议(LDAP):
LDAP 代表轻量级目录访问协议。它是一种用于定位任何人以在网络中定位个人、组织和其他设备的协议,无论是在公共互联网还是公司互联网上。它用作目录即服务,是 Microsoft 构建活动目录的基础。
LDAP的特点:
- 它实现了一个具有灵活架构的开源协议。
- 直接通过 TCP/IP 和 SSL 运行。
- LDAP 是一种自我自动化的协议。
- 提供跨行业的广泛支持。
2. OAuth 2 :
顾名思义,OAuth 是一种授权框架,有助于通过 HTTP 服务向其帐户上的用户授予有限访问权限。当用户请求访问资源时,会进行 API 调用并且在传递身份验证令牌之后。
OAuth 2 的特点:
- 它是一种灵活的协议,允许在不使用用户凭据的情况下访问。
- 它更容易实施。
- 它提供代码的服务器端授权。
- 它提供强身份验证。
LDAP 和 OAuth 的区别:
S.No. | LDAP | OAuth 2 |
---|---|---|
1. | It is short called as Lightweight Directory Access Protocol. | It is called as OAuth 2. |
2. | LDAP is used for authorizing the details of the records when accessed. | It is used for authentication user credential as on Server Side. |
3. | It is not open-source but it possesses implementation such as Open LDAP which are open-source. | It is an open standard for access delegation. |
4. | It supports two-factor authentication with RADIUS protocol. | It provide two-way authentication, and can tell you about the number of attributes of user. |
5. | LDAP appends authentication in two options SASL or anonymous authentication. | OAuth provides authentication by access token called as network tokens. |
6. | It renders authentication in multi-tier applications. | It provides authentication in multi-tier applications. |