Title: wpCAS
Author: Casey Bisson
Published: <strong>2008 年 8 月 30 日</strong>
Last modified: 2010 年 3 月 25 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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

# wpCAS

 由 [Casey Bisson](https://profiles.wordpress.org/misterbisson/) 開發

[下載](https://downloads.wordpress.org/plugin/wpcas.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/wpcas/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/wpcas/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/wpcas/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/wpcas/#developers)

 [技術支援](https://wordpress.org/support/plugin/wpcas/)

## 外掛說明

wpCAS integrates WordPress into an established CAS architecture, allowing centralized
management and authentication of user credentials in a heterogeneous environment.

[From Wikipedia](http://en.wikipedia.org/wiki/Central_Authentication_Service):

> The Central Authentication Service (CAS) is a single sign-on protocol for the 
> web. Its purpose is to permit a user to log into multiple applications simultaneously
> and automatically. It also allows untrusted web applications to authenticate users
> without gaining access to a user’s security credentials, such as a password. The
> name CAS also refers to a software package that implements this protocol.

Users who attempt to login to WordPress are redirected to the central CAS sign-on
screen. After the user’s credentials are verified, s/he is then redirected back 
to the WordPress site. If the CAS username matches the WordPress username, the user
is recognized as valid and allowed access.

[Authorization](http://en.wikipedia.org/wiki/AuthZ) of that user’s capabilities 
is based on native WordPress settings and functions. CAS only authenticates that
the user is who s/he claims to be.

If the CAS user does not have an account in the WordPress site, an administrator
defined function can be called to provision the account or do other actions. By 
default, CAS users without WordPress accounts are simply refused access.

## 安裝方式

 1. Download [phpCAS](http://www.ja-sig.org/wiki/display/CASC/phpCAS) and place it 
    on your webserver so that it can be included by the wpCAS plugin.
 2. Place the plugin folder in your `wp-content/plugins/` directory and activate it.
 3. Set any options you want in Settings -> wpCAS _or_ in the `wpcas-conf.php` file.
 4. The plugin starts intercepting authentication attempts as soon as you activate 
    it. Use another browser or another computer to test the configuration.

#### wpcas-conf.php

wpCAS can be configured either via the settings page in the WordPress dashboard,
or via a configuration file. See `wpcas-conf-sample.php` for an example. If a config
file is used, it overrides any settings that might have been made via the settings
page and that page is hidden.

Use of `wpcas-conf.php` is recommended for WordPressMU installations, as doing so
hides the settings menu from users.

#### WordPressMU Installation

 1. Download [phpCAS](http://www.ja-sig.org/wiki/display/CASC/phpCAS) and place it 
    on your webserver so that it can be included by the wpCAS plugin.
 2. Place the plugin `wpcas.php` in your `wp-content/mu-plugins/` directory.
 3. Make a copy of `wpcas-conf-sample.php`, rename it `wpcas-conf.php`, and put it 
    in your `wp-content/mu-plugins/` directory.
 4. Set the options in the config file.
 5. The plugin starts intercepting authentication attempts as soon as you activate 
    it. Use another browser or another computer to test the configuration.
 6. Consider creating a function to provision user accounts for CAS-authenticated users
    who do not have WordPress accounts.

## 常見問題集

  What version of phpCAS should I use?

I’ve only tested it with the 1.0 release available from ja-sig.

  How’s it work?

Users who attempt to login to WordPress are redirected to the central CAS sign-on
screen. After the user’s credentials are verified, s/he is then redirected back 
to the WordPress site. If the CAS username matches the WordPress username, the user
is recognized as valid and allowed access. If the CAS username does not exist in
WordPress, you can define a function that could provision the user in the site.

  You keep talking about provisioning users. How?

Each environment is different; each environment probably needs its own solution 
for this. I’ve posted my [user provisioning script](http://maisonbisson.com/projects/wpcas)
here, if you find something in there that works, [leave a comment](http://maisonbisson.com/projects/wpcas).

  What’s the relationship between LDAP and CAS?

There is none.

  This looks familiar…

You might be thinking of [Stephen Schwink](http://schwink.net)‘s [CAS Authentication](https://wordpress.org/extend/plugins/cas-authentication/)
plugin. This plugin would be a lot different if I couldn’t lean on Stephen’s excellent
work. My primary reasons for branching (under the the terms of the GPL) were that
I wanted it to work better with WPMU and needed an easier way to hook-in functions
to provision users and wanted to do that while also making it easy to upgrade using
SVN (thus the config file).

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈wpCAS〉的開發相關工作。

參與者

 *   [ Casey Bisson ](https://profiles.wordpress.org/misterbisson/)

[將〈wpCAS〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/wpcas)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/wpcas/)、查看 
[SVN 存放庫](https://plugins.svn.wordpress.org/wpcas/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/wpcas/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/wpcas/)。

## 中繼資料

 *  版本 **1.07**
 *  最後更新 **16 年前**
 *  啟用安裝數 **100+**
 *  WordPress 版本需求 ** 2.7 或更新版本 **
 *  已測試相容的 WordPress 版本 **2.7.1**
 *  語言
 * [English (US)](https://wordpress.org/plugins/wpcas/)
 * 標籤:
 * [authentication](https://tw.wordpress.org/plugins/tags/authentication/)[cas](https://tw.wordpress.org/plugins/tags/cas/)
   [central authentication service](https://tw.wordpress.org/plugins/tags/central-authentication-service/)
   [phpCAS](https://tw.wordpress.org/plugins/tags/phpcas/)[wpCAS](https://tw.wordpress.org/plugins/tags/wpcas/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wpcas/advanced/)

## 評分

這個項目尚無任何評論記錄。

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

[查看全部使用者評論](https://wordpress.org/support/plugin/wpcas/reviews/)

## 參與者

 *   [ Casey Bisson ](https://profiles.wordpress.org/misterbisson/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/wpcas/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://MaisonBisson.com/)