Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

soar_authentication_cas

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

soar_authentication_cas

  • 0.1.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

SoarAuthenticationCas

This library provides CAS configuration for soar_sc. It supports 'production' and 'development' rack environments, and looks in RACK_ENV['CAS_SERVER'] to find the CAS server URI

Calling SoarAuthenticationCas::configure(environment) returns a dictionary containing CAS configuration:

  { :prefix => signon_prefix,
    :browsers_only => are_we_in_development,
    :ignore_certificate => are_we_in_development }

:prefix contains the CAS prefix to use, e.g. 'https://my_cas_server.com/cas'

:browser_only indicates whether CAS should be in effect for browser interactions only, and is true only if it finds itself in the development environment

:ignore_certificate indicates whether certificate validation should be disabled, and is true only if it finds itself in the development environment

Installation

Add this line to your application's Gemfile:

gem 'soar_authentication_cas'

And then execute:

$ bundle

Or install it yourself as:

$ gem install soar_authentication_cas

Usage

This gem is used in conjunction with the kh_signon CAS client gem, as follows:

require 'kh_signon'

options = SoarAuthenticationCas::configure(environment)
stack.use KhSignon::RackMiddleware, options if options

Contributing

Bug reports and feature requests are welcome by email to ernst dot van dot graan at hetzner dot co dot za. This gem is sponsored by Hetzner (Pty) Ltd (http://hetzner.co.za)

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 19 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc