Project

oa-casport

0.01
No commit activity in last 3 years
No release in over 3 years
Simple gem to enable rack powered Ruby apps to authenticate internally via casport with ease
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

Gem Version Build Status Code Climate

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