This repository has been archived by the owner on Aug 21, 2019. It is now read-only.
forked from rubycas/rubycas-client-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,5 @@ | ||
RubyCAS-Client-Rails | ||
==================== | ||
= MOVED! | ||
|
||
Rails plugin for using the RubyCAS-Client as a controller filter. | ||
This repo has been moved to https://github.com/rubycas/rubycas-client-rails. | ||
|
||
This uses a Railtie, so will only work with Rails 3.0 and up. | ||
|
||
|
||
Installation | ||
============ | ||
|
||
Add the following to your `Gemfile`: | ||
|
||
gem 'rubycas-client-rails' | ||
|
||
Then run bundler in your Rails app's root directory: | ||
|
||
bundle install | ||
|
||
Once the necessary gems have been installed, in your `application.rb` add: | ||
|
||
config.rubycas.cas_base_url = 'https://cas.example.com/' | ||
|
||
Finally, to enable the CAS filter for a controller: | ||
|
||
class MyController < ApplicationController | ||
|
||
before_filter RubyCAS::Filter | ||
If you want authentication to be optional, use the GatewayFilter instead: | ||
|
||
before_filter RubyCAS::GatewayFilter | ||
|
||
Many other configuration options are available. For example you can instruct | ||
the client to log its actions to the default Rails logger using: | ||
|
||
config.rubycas.logger = Rails.logger | ||
|
||
See the (outdated) documentation at [http://rubycas-client.rubyforge.org/](http://rubycas-client.rubyforge.org/) | ||
for a full list of config options. | ||
|
||
|
||
Copyright (c) 2011 University of Toronto, released under the MIT license | ||
The fork you are looking at is no longer updated. Please change your git remotes to the new rubycas URL. |