Title: wpCAS Server
Author: Adam Backstrom
Published: <strong>2009 年 3 月 30 日</strong>
Last modified: 2012 年 7 月 12 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/wpcas-server.svg)

# wpCAS Server

 作者：[Adam Backstrom](https://profiles.wordpress.org/adambackstrom/)

[下载](https://downloads.wordpress.org/plugin/wpcas-server.zip)

 * [详情](https://cn.wordpress.org/plugins/wpcas-server/#description)
 * [评价](https://cn.wordpress.org/plugins/wpcas-server/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wpcas-server/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wpcas-server/#developers)

 [支持](https://wordpress.org/support/plugin/wpcas-server/)

## 描述

This plugin reserves a collection of URIs that create, validate, and destroy CAS
tickets.

 * /cas/login :: If user is not authenticated he/she is redirected to the login 
   page. Otherwise the user is redirected to the service specified as a GET variable
   in the URL – or if service is not provided, the user is redirected to the WordPress
   instance’s home.
 * /cas/logout :: The user’s session is destroyed, user is logged out of the WordPress
   instance, and redirected to $_GET[‘service’] (or the blog home if service isn’t
   provided)
 * /cas/proxyValidate and /cas/validate :: The CAS ticket must be passed as a GET
   parameter in the URL when calling /cas/validate. The ticket is validated and 
   XML is output with either cas:authenticationSuccess or cas:authenticationFailure

### Hooks & Filters

#### wpcas_server_login Hook

This hook allows for the insertion of code after login has successfully completed
and just before the ticket creation. One common use of this hook is to fill out 
the $_SESSION variable with site/user specific information.

#### wpcas_server_auth_value Filter

This filter (executed in a successful ticket validation in /cas/validate) is used
to override the user identifier returned in the cas:authenticationSuccess XML response.
By default, the value returned is the $user_ID of the authenticated user. Using 
this filter, that value can be altered to whatever suits your implementation.

## 安装

 1. Upload `wpcas-server` directory to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 常见问题

  What version of CAS does this plugin replicate?

wpCAS Server currently replicates partial functionality of a CAS 2.0 server.

  You just said “partial”…what doesn’t this support?

Currently wpCAS Server has not implemented the Proxy ticketing found in the [CAS 2.0 architecture](http://www.jasig.org/cas/cas2-architecture).

## 评价

此插件暂无评价。

## 贡献者及开发者

「wpCAS Server」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Adam Backstrom ](https://profiles.wordpress.org/adambackstrom/)
 *   [ Matthew Batchelder ](https://profiles.wordpress.org/borkweb/)
 *   [ Casey Bisson ](https://profiles.wordpress.org/misterbisson/)

[帮助将「wpCAS Server」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wpcas-server)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wpcas-server/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/wpcas-server/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wpcas-server/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wpcas-server/)。

## 更新日志

#### 1.0

 * Initial release

## 额外信息

 *  版本 **1.0**
 *  最后更新：**14 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.8 或更高版本 **
 *  已测试的最高版本为 **2.9.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wpcas-server/)
 * 标签
 * [auth](https://cn.wordpress.org/plugins/tags/auth/)[authentication](https://cn.wordpress.org/plugins/tags/authentication/)
   [central authentication service](https://cn.wordpress.org/plugins/tags/central-authentication-service/)
   [wpCAS](https://cn.wordpress.org/plugins/tags/wpcas/)
 *  [高级视图](https://cn.wordpress.org/plugins/wpcas-server/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/wpcas-server/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wpcas-server/reviews/)

## 贡献者

 *   [ Adam Backstrom ](https://profiles.wordpress.org/adambackstrom/)
 *   [ Matthew Batchelder ](https://profiles.wordpress.org/borkweb/)
 *   [ Casey Bisson ](https://profiles.wordpress.org/misterbisson/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wpcas-server/)