cas README

项目的 README,来自 github.com/apereo/cas。合并为一个 markdown 文件:README.md。

Apereo CAS

Apereo CAS

Open-source single sign-on and identity provider for the web.
One login for all your applications, over CAS, SAML2, OAuth2 and OpenID Connect, with multifactor authentication built in.

Latest release Maven Central Apache 2.0 license Slack Code coverage Revved up by Develocity

Quick Start · Documentation · Releases · Support · Contribute


CAS is an enterprise, multilingual identity provider and single sign-on server. It started as the CAS protocol, an open and well-documented authentication protocol, and this repository holds its primary implementation: a Java server built on Spring Boot and Spring Cloud, with support for a plethora of authentication protocols and features. CAS is free and open source, managed by the Apereo Foundation and licensed under Apache 2.0.

Try It in a Minute

With Docker installed, start the official image, using a CAS version tagged on Docker Hub in place of <version>:

docker run --rm -p 8080:8080 \
  -e SERVER_SSL_ENABLED=false -e SERVER_PORT=8080 \
  apereo/cas:<version>

Open http://localhost:8080/cas/login and log in as casuser with the password Mellon.

When you are ready for your own server, the Quick Start takes you from here to a configured WAR overlay with a registered application in eight short steps, and Getting Started explains how to plan a deployment. You do not need to clone this repository to run CAS; that is only required to contribute to the project.

What CAS Does

Area Highlights
Protocols CAS v1, v2 and v3, SAML v1 and v2, OAuth 2.0, OpenID Connect, OpenID for Verifiable Credentials, WS-Federation Passive Requester
Authentication LDAP and Active Directory, RDBMS, X.509, SPNEGO, JAAS, RADIUS, JWT, MongoDB, Apache Cassandra, BASIC, Remote, Trusted, passkeys and passwordless login, and more
Delegated authentication External SAML2, OpenID Connect, OAuth, CAS and WS-Federation identity providers, including social logins
Multifactor authentication Duo Security, WebAuthn FIDO2, Google Authenticator, YubiKey, Simple MFA, RADIUS and more
Authorization Heimdall, OpenFGA, Open Policy Agent, ABAC, time and date rules, REST, Internet2 Grouper and more
High availability Ticket registries on Hazelcast, Redis, JPA, MongoDB, DynamoDb, Memcached, Apache Ignite and more
Application registration Service registries on JSON, YAML, LDAP, JPA, MongoDB, DynamoDb, Redis, Google Cloud and more
User experience Global and per-application themes, password management and policy enforcement, attribute release consent, notifications by email and SMS (Twilio, Mailgun, SendGrid, Amazon SES)
Integrations Apache Syncope, SCIM, Shibboleth IdP, Keycloak, Okta, Swagger and more
Operations Admin dashboards, monitoring, metrics, logging and audits; runs on embedded Apache Tomcat or Jetty, in Docker containers and on Kubernetes

Documentation

Version Status Docs
development Ongoing work toward the next release Read
8.0.x Maintenance Release Read
7.3.x Maintenance Release Read

Release dates and end-of-life schedules are in the Maintenance Policy and the release schedule. The Apereo blog covers new releases, how-tos and deployment stories.

Contribute

If you have identified an enhancement or a bug, please submit a pull request for it. There is no need to open a separate issue first: the pull request is the issue, and it is tracked and tagged as such. The contributor guide explains how the project works, and the build guide shows how to build CAS from source.

Contributors to Apereo CAS

Support

Apereo CAS is 100% free open source software. The community has access to every release at no cost, and the time and effort to develop and maintain it are given by volunteers and contributors. If you or your employer benefit from CAS, please consider becoming a Friend of Apereo.

Questions are welcome on the mailing lists and Slack, where you will also find commercial support options. To report a security issue, please follow the security policy.

cas (apereo/cas)

正在搜索数据库…

11.4K ·GitHub
这是什么?CAS(Central Authentication Service,中央认证服务)是一个面向 Web 的企业级多语言身份提供商和单点登录服务器:一个用于集中管理认证和授权的开源 Java 平台。
它是加到我应用代码里的库,还是一个需要单独运行的服务器?它是一个需要部署的服务器,而不是库:你的应用会把用户重定向到 CAS 去登录,然后由 CAS 把用户的身份回传给每个应用。这个仓库就是这个服务器的实现——不会有任何东西被加进你应用的代码库。
我具体怎么才能把 CAS 服务器跑起来?使用推荐的 WAR Overlay 方式构建一个 WAR,然后运行在 Apache Tomcat 或 Jetty 上,或者作为 Docker 容器运行。只有想给 CAS 本身贡献代码时才需要克隆这个代码库。
用户名和密码从哪里来——它会强迫我用某个特定的用户数据库吗?没有任何强制:它可以对接 JAAS、LDAP、关系型数据库、X.509、Radius、SPNEGO、JWT、MongoDB、Apache Cassandra 等等进行认证,也可以通过 SAML2、OpenID Connect 和 OAuth 把登录委托给外部身份提供商。
日常维护要花多少功夫——有什么坑吗?所有事情都得你自己来:注册每个应用、运行和扩容服务器、自己处理升级。软件本身是免费的,但 Apereo 提供的持续商业支持是另外付费的。
个人开发者做小项目用它现实吗,还是说它就是给企业用的?它是为组织而设计的——公司、大学,以及任何拥有大量需要共享同一登录的 Web 应用的机构。小型个人项目很少有必要去托管一整套身份平台。
服务器能跑在哪里——我只能用 Linux 吗?凡是能跑 Java 的地方都能运行——它提供了 Apache Tomcat 和 Jetty 的打包版本,也提供 Docker 容器——所以 Linux 服务器是常态,但不是必须的。最终用户只需要在浏览器里接触它。
商用产品使用它真的免费吗?是的——基于 Apache v2 的 100% 免费开源,每个版本都可以免费获取,公司使用也没有问题。只有 Apereo 提供的可选商业支持才需要花钱。
我的应用可以用哪些单点登录协议来对接它?全套企业级协议:CAS v1/v2/v3、SAML v1 和 v2、OAuth v2、OpenID Connect,以及 WS-Federation Passive Requester。
它能要求第二重验证吗,比如 Duo 或 YubiKey?可以——多因素认证是内置功能,支持 Duo Security、Simple MFA、YubiKey、RSA、Google Authenticator、WebAuthn FIDO2 等。
它也管授权吗,还是只管登录?授权同样涵盖:可以通过 Heimdall、OpenFGA、OPA、ABAC 规则、时间/日期限制、REST,或 Internet2 的 Grouper 来执行策略。
我可以运行多个实例来实现高可用吗?可以——集群化高可用部署是受支持的场景,共享状态可以放在 Hazelcast、JPA、Memcached、Apache Ignite、MongoDB、Redis、DynamoDB 等里面。
有哪些类似的项目?casdoor, authentik, zitadel, authelia, logto, django-allauth, dex, keycloak
作者
apereo
大小
360.5 MB
星标
11.4K
时长
15年
提交 · 90 天