Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

internal authentication gem to work with OmniAuth

tree: 16a1caceb8

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rvmrc
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 oa-casport.gemspec
README.md

oa-casport

The goal of this gem is to allow CASPORT integartion with your rack-based application easily through OmniAuth.

Installation

Add the following line to your Gemfile:

gem 'oa-casport'

Configuration Parameters:

Configuration within the initializer for OmniAuth:

# @example Basic Usage
#
#  use OmniAuth::Strategies::Casport, {
#    :setup => true
#  }
# 
# @example Full Options Usage
#
#  use OmniAuth::Strategies::Casport, {
#    :setup         => true,
#    :cas_server    => 'http://cas.slkdemos.com/users/',
#    :format        => 'json', 'xml' || Defaults to 'xml'
#    :format_header => 'application/xml', 'application/json' || Defaults to 'application/xml'
#    :ssl_ca_file   => 'path/to/ca_file.crt',
#    :pem_cert      => '/path/to/cert.pem',
#    :pem_cert_pass => 'keep it secret, keep it safe.',
#    :redis_options => 'disabled'
#  }

Example Applications

You can see how to set it up and use it with a Rails 3 application at: https://github.com/stevenhaddox/oa-casport-rails3

#TODO: You can see how to set it up and use it with a Sinatra application at: https://github.com/stevenhaddox/oa-casport-sinatra

Something went wrong with that request. Please try again.