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

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.

評價

There are no reviews for this plugin.

貢獻者及開發者

“wpCAS Server” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 wpCAS Server 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0

  • Initial release