From http://cakebaker.42dh.com/2008/04/01/openid-versus-oauth-from-the-users-perspective/
In this article I want to show the differences between OpenID and its younger cousin OAuth by providing for each a typical user scenario.
First the scenario for OpenID:
- User wants to access his account on example.com
- example.com (the “Relying Party” in OpenID lingo) asks the user for his OpenID
- User enters his OpenID
- example.com redirects the user to his OpenID provider
- User authenticates himself to the OpenID provider
- OpenID provider redirects the user back to example.com
- example.com allows the user to access his account
And now the scenario for OAuth:
- User is on example.com and wants to import his contacts from mycontacts.com
- example.com (the “Consumer” in OAuth lingo) redirects the user to mycontacts.com (the “Service Provider”)
- User authenticates himself to mycontacts.com (which can happen by using OpenID)
- mycontacts.com asks the user whether he wants to authorize example.com to access his contacts
- User makes his choice
- mycontacts.com redirects the user back to example.com
- example.com retrieves the contacts from mycontacts.com
- example.com informs the user that the import was successful
From those scenarios we can see that OpenID is about authentication (i.e. I can identify myself with an url) whereas OAuth is about authorization (i.e. I can grant permission to access my data on some website to another website, without providing this website the authentication information for the original website).
分享到:
相关推荐
OAuth 2.0 和 OpenID Connect 是两个在互联网身份验证和授权领域至关重要的协议。OAuth 2.0 主要关注的是资源访问的权限委托,而 OpenID Connect 则是在 OAuth 2.0 的基础上增加了一个身份验证层,使得用户可以安全...
OAuth 2.0 and OpenID Connect providers. It strives to directly map the requests and responses of those specifications, while following the idiomatic style of the implementation language. In addition ...
This book is intended to be a comprehensive and thorough treatment of the OAuth 2.0 protocol and many of its surrounding technologies, including OpenID Connect and JOSE/JWT. We want you to come away ...
用于ASP.NET Core的IdentityServer4 OpenID Connect和OAuth 2.0框架这是IdentityServer4的主要仓库-还有更多内容:文档咨询,培训和支持示例访问令牌验证用于ASP.NET Core的IdentityServer4 OpenID Connect和OAuth ...
ORY Hydra是经过强化,经过OpenID认证的OAuth 2.0服务器和OpenID Connect提供商,针对低延迟,高吞吐量和低资源消耗进行了优化。 ORY Hydra不是身份提供者(用户注册,用户登录,密码重置流程),而是通过登录和同意...
4. **OpenID Connect**:OpenID Connect是基于OAuth2.0的身份验证层,可以提供用户身份验证。在SharePoint中,它可以让用户通过单一登录(Single Sign-On, SSO)服务访问多个系统,提高用户体验。 5. **...
function get_access_token_and_openid($code) { $url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=YOUR_APPID&secret=YOUR_APPSECRET&code=$code&grant_type=authorization_code"; $result = ...
《Advanced API Security OAuth 2.0 and Beyond》第二版由Prabath Siriwardena撰写,是一本深入探讨API安全和OAuth 2.0协议的专业书籍。API(应用程序编程接口)安全是当前信息技术领域中的关键议题,因为API已经...
2. **集中式认证**:如OpenID和单点登录(SSO)机制,其中常用的是CAS协议和SAML标准。 3. **分散式认证**:主要指OAuth协议。 #### SAML/CAS - **SAML**(Security Assertion Markup Language)是一种用于身份认证...
开源的用于OpenID, OAuth, and ICard 官方最新版
7. **Scopes and Permissions**:OAuth 2.0中的权限范围(Scopes)管理也是 DotNetOpenAuth 支持的一部分,允许客户端在请求授权时指定需要访问的资源范围。 8. **Code Flow 和 Implicit Flow**: DotNetOpenAuth ...
The jee-pac4j project is an easy and powerful security library for JEE web applications and web services which supports authentication and authorization, but also logout and advanced features like ...
这个平台的关键特性是它支持OAuth 2.0和OpenID Connect(OIDC)协议,这两种协议在现代Web应用的身份验证中扮演着重要角色。 首先,让我们来理解IAM(Identity and Access Management)系统的核心概念。IAM是一种...
议程和幻灯片内容Introduction to the topic IAM - Identity and Access Management and related terminology.Short intro to Keycloak.Setup of the local environment the techlab is based on. OAuth 2.0 incl. ...
OAuth 1.0, 1.0a and 2.0 Superior support for multi-byte Unicode identifiers. Lots of security features 490+ unit tests to verify correctness. Library behind the OSIS OpenID interop testing
The vertx-pac4j project is an easy and powerful security library for Vert.x 3 web applications and web services which supports authentication and authorization, but also application logout and ...
书中的内容可能包括Windows身份验证、Forms身份验证、OAuth、OpenID等,以及如何配置SSL证书以实现安全的HTTPS连接。 总而言之,《Professional IIS 7 and ASP.NET Integrated Programming》是一本全面的参考书,...