`
oywl2008
  • 浏览: 1037417 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

CAS vs. SAML vs. OAuth2

    博客分类:
  • SSO
 
阅读更多

CAS-Server:

A stand-alone central login page where the user enters their credentials (i.e. their username and password).

CAS supports the standardized SAML 1.1 protocol primarily to support attribute release to clients and single sign-out.

(a table in a SQL database, ActiveDirectory/LDAP, Google accounts, etc.) Full compatibility with the open, multi-platform CAS protocol (CAS clients are implemented for a wide range of platforms, including PHP, various Java frameworks, .NET, Zope, etc.) Multi-language localization -- RubyCAS-Server automatically detects the user's preferred language and presents the appropriate interface.

enter image description here

SAML : Security Assertion Markup Language is an XML-based, open-standard data format for exchanging authentication and authorization data between parties, in particular, between an identity provider and a service provider. SAML authorization is a two step process and you are expected to implement support for both.

enter image description here

OAuth 2.0:

The OAuth 2.0 authorization framework enables a third-party application to obtain limited access to an HTTP service, either on behalf of a resource owner by orchestrating an approval interaction between the resource owner and the HTTP service, or by allowing the third-party application to obtain access on its own behalf.

enter image description here

Important Note :

SAML has one feature that OAuth2 lacks: the SAML token contains the user identity information (because of signing). With OAuth2, you don't get that out of the box, and instead, the Resource Server needs to make an additional round trip to validate the token with the Authorization Server.

On the other hand, with OAuth2 you can invalidate an access token on the Authorization Server, and disable it from further access to the Resource Server.

Both approaches have nice features and both will work for SSO. We have proved out both concepts in multiple languages and various kinds of applications. At the end of the day OAuth2 seems to be a better fit for our needs (since there isn't an existing SAML infrastructure in place to utilize).

OAuth2 provides a simpler and more standardized solution which covers all of our current needs and avoids the use of workarounds for interoperability with native applications.

When should I use which?

1.If your usecase involves SSO (when at least one actor or participant is an enterprise), then useSAML.

2.If your usecase involves providing access (temporarily or permanent) to resources (such as accounts, pictures, files etc), then use OAuth.

3.If you need to provide access to a partner or customer application to your portal, then use SAML.

4.If your usecase requires a centralized identity source, then use SAML (Identity provider).

5.If your usecase involves mobile devices, then OAuth2 with some form of Bearer Tokens is appropriate.

enter image description here

分享到:
评论

相关推荐

    cas4.1.x集成.zip

    2. **SAML协议**:基于XML的协议,提供更丰富的身份验证信息,支持双向身份验证。 3. **OAuth协议**:用于授权而非认证,但可以通过OAuth 2.0的JWT扩展实现认证功能。 **五、CAS扩展功能** 1. **多因素认证**:...

    cas源码.....

    CAS 提供了多种协议支持,如 CAS 协议、SAML 1.1 和 OAuth。本资料主要探讨 CAS 的源码,以深入理解其工作原理和内部机制。 【标签】:“CAS”指的是CAS(Central Authentication Service) 【压缩包子文件】: 1....

    cas5.3.zip

    此版本可能包括对OAuth、OpenID Connect、SAML等身份验证协议的支持,以及对现代浏览器和操作系统的需求优化。 2. **单点登录(SSO)**:SSO是企业级应用中广泛采用的一种认证机制,通过统一的身份验证中心,确保...

    单点登录JWT、CAS、Oauth2、SAML几种技术方案对比分析

    本文将对比分析四种常见的SSO技术:JWT、CAS、OAuth2和SAML。 1. 基于JWT的单点登录: JWT(Json Web Token)是一种开放标准,用于在各方之间安全地传输信息。在SSO场景中,JWT作为用户身份验证的凭证,具有紧凑且...

    Apereo CAS v. 4.2.1 Release 编译成功带war包

    4. **新协议支持**:可能增加了对新的身份验证协议的支持,比如SAML 2.0或者OAuth 2.0。 5. **配置改进**:可能提供了更灵活的配置选项,以便适应不同的部署环境。 **IDEA配置文件**: 提到的“带idea配置文件”...

    cas-4.0.0.tar.gz

    CAS支持多种协议,如CAS Protocol、SAML 1.1、SAML 2.0和OpenID Connect等。 2. **版本4.0.0**:此版本发布于2013年,带来了许多新特性与改进。比如增强的审计日志、对Java 7的支持、新的服务管理界面以及对OAuth ...

    cas-server-3.4.2.1-release

    同时,CAS 支持与其他系统集成,如 SAML、OAuth 和 OpenID Connect。 总的来说,"cas-server-3.4.2.1-release" 是一个强大且灵活的身份验证解决方案,为组织提供了高效、安全的单一登录服务。深入了解并正确配置 ...

    openjdk11+tomcat9+CASServer.zip

    CAS 6.3版本带来了许多改进和新特性,例如支持更多的协议(如OAuth、OpenID Connect、SAML等)、增强了审计日志功能、提供了更灵活的配置选项等。此外,它还强调了对现代Web开发框架和最佳实践的支持。 搭建CAS ...

    基于SpringBoot3开源IDaas/IAM平台,支持OAuth2.x、OIDC、SAML2.0、CAS等SSO标准协议

    基于 SpringBoot3 开源IDaas/IAM平台,支持OAuth2.x、OIDC、SAML2.0、JWT、CAS等SSO标准协议,实现用户全生命周期的管理、统一认证和单点登录。简洁、轻量、设计良好。多数据库支持。多种格式文档。灵活扩展。支持...

    集成cas实现单点登录认证.zip

    CAS支持多种协议,如CAS协议、SAML2.0等,并且可以与其他身份验证服务(如OAuth、OpenID Connect)集成。 2. 单点登录原理:SSO的核心思想是用户只需要进行一次身份验证,然后这个验证结果可以在所有信任的系统之间...

    pac4j:Java的安全引擎(身份验证,授权,多框架):OAuth,CAS,SAML,OpenID Connect,LDAP,JWT。

    它基于Java 8,并在Apache 2许可下可用。 它可用于大多数框架/工具,并支持大多数身份验证/授权机制。可用的实现(通过单击您的框架开始): • • • • • • • ••• • • • • • 认证机制: - - - - - - -...

    src for cas-4.0.0.rar

    它支持多种协议,如 CAS、SAML、OAuth 和 OpenID Connect,使得 CAS 成为了多应用环境下的理想选择。 在压缩包 "src" 中,我们可以期待找到以下关键组成部分: 1. **控制器(Controllers)**:定义了 CAS 服务器的...

    spring-webmvc-pac4j:Spring Web MVC的安全性库:OAuth,CAS,SAML,OpenID Connect,LDAP,JWT ..

    ▸OAuth-SAML-CAS-OpenID Connect-HTTP-Google App Engine-LDAP-SQL-JWT-MongoDB-CouchDB-Kerberos-IP地址-Kerberos(SPNEGO)-REST API 者旨在检查已认证的用户个人资料或当前Web上下文中的授权: ▸角色/权限-...

    cas-server-3.4.3.1-release.zip

    CAS支持多种协议,如CAS Protocol、SAML、OAuth、OpenID Connect等,使得它可以与其他各种系统集成。 在"cas-server-3.4.3.1"这个压缩包子文件的文件名称列表中,我们可以预期找到以下组件和配置文件: 1. `cas-...

    CAS.rar_CAS_java CAS_sso_单点登陆 java_登陆

    CAS支持多种协议,包括原始的CAS协议、SAML、OAuth等,这些协议允许不同类型的系统集成SSO。例如,CAS协议是最基础的,适用于Java和.NET平台;SAML则更为复杂,但提供了更强大的身份验证和授权功能,适合跨域和多...

    cas-4.0.0.zip

    - **身份验证协议**:学习CAS协议和其他相关身份验证协议,如SAML、OAuth、OpenID Connect等。 - **数据库集成**:如何配置和使用数据库存储用户信息和服务信息。 - **服务器端和客户端集成**:掌握如何在服务器端...

    是业界领先的IAM-IDaas身份管理和认证产品,支持OAuth2.x、OpenID Connectt、SAML2.0、JWT、

    MaxKey单点登录认证系统是业界领先的IAM-IDaas身份管理和认证产品,支持OAuth2.x、OpenID Connect、SAML2.0、JWT、CAS、SCIM等SSO标准协议,基于RBAC统一权限控制,实现用户生命周期管理,开源、安全、自主可控。

    cas-overlay-template-5.2.x.zip单点登录服务器

    在使用`cas-overlay-template-5.2.x`时,开发者可以自定义配置,比如修改默认的登录页面、添加或更改认证机制、设置属性服务来存储和检索用户信息,或者实现特定的SSO协议,如SAML、OAuth、OpenID Connect等。...

    cas4认证服务

    1. **协议支持**:CAS支持多种身份验证协议,如CAS Protocol、SAML 1.1、OAuth、OpenID Connect等,使得它能与各种应用系统集成。 2. **多语言支持**:CAS 4.x版本提供了多语言界面,方便不同地区的用户使用。 3. **...

    cas_sso.rar_CAS_CAS SSO_cas文档_sso C_单点登录

    CAS可以通过插件系统与其他系统进行集成,例如与OAuth、OpenID Connect、SAML等身份协议的互操作,或与Spring Security、Apache Shiro等安全框架配合使用。这使得CAS能够适应更广泛的生态系统。 **维护与监控** ...

Global site tag (gtag.js) - Google Analytics