Ruby cas server Installation - leebalaji1234/poc GitHub Wiki

Ruby cas server requires ruby 1.8.7 to ruby 1.9.2

gem install rubycas-server

for integrate with devise

authenticator: class: CASServer::Authenticators::SQLBcrypt

class: CASServer::Authenticators::SQL

database: adapter: mysql2 database: bigtappsys username: root password: root123 host: localhost user_table: users username_column: email password_column: encrypted_password

gem install bcrypt-ruby


git clone git://github.com/rubycas/rubycas-server.git

issue facing

detect_yaml_private_type': uninitialized constant Psych::ENGINE (NameError)

gem install psych

gem install r18n-core

$ rvm gemset create new-gemset $ rvm use 1.9.2@new-gemset $ gem list

https://github.com/rubycas/rubycas-server/wiki/Installation

http://guides.rubyonrails.org/command_line.html

https://github.com/rubycas/rubycas-server/wiki/Starting-the-Server

Using custom config file "config.yml" /home/balaji/.rvm/gems/ruby-2.2.0/gems/r18n-core-1.1.11/lib/r18n-core/yaml_methods.rb:34:in detect_yaml_private_type': uninitialized constant Psych::ENGINE (NameError) from /home/balaji/.rvm/gems/ruby-2.2.0/gems/r18n-core-1.1.11/lib/r18n-core/yaml_loader.rb:42:in initialize' from /home/balaji/.rvm/gems/ruby-2.2.0/gems/r18n-core-1.1.11/lib/r18n-core.rb:160:in new' from /home/balaji/.rvm/gems/ruby-2.2.0/gems/r18n-core-1.1.11/lib/r18n-core.rb:160:in module:R18n' from /home/balaji/.rvm/gems/ruby-2.2.0/gems/r18n-core-1.1.11/lib/r18n-core.rb:40:in <top (required)>' from /home/balaji/.rvm/gems/ruby-2.2.0/gems/sinatra-r18n-1.1.11/lib/sinatra/r18n.rb:22:in <top (required)>' from /home/balaji/rubyworks/rubycas-server/lib/casserver/base.rb:2:in <top (required)>' from /home/balaji/rubyworks/rubycas-server/lib/casserver/server.rb:3:in <top (required)>' from /home/balaji/rubyworks/rubycas-server/lib/casserver.rb:18:in require' from /home/balaji/rubyworks/rubycas-server/lib/casserver.rb:18:in <top (required)>' from /home/balaji/rubyworks/rubycas-server/bin/rubycas-server:28:in require' from /home/balaji/rubyworks/rubycas-server/bin/rubycas-server:28:in <top (required)>' from /home/balaji/.rvm/gems/ruby-2.2.0/bin/rubycas-server:23:in load' from /home/balaji/.rvm/gems/ruby-2.2.0/bin/rubycas-server:23:in

' from /home/balaji/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in eval' from /home/balaji/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in '

Try out other way

https://github.com/rubycas/rubycas-server/wiki/Starting-the-Server

Clients

Ruby

Php

Ruby 1.8.7 or newer
RubyGems + Bundler
Ruby bindings for your preferred database.
An SSL certificate (CAS requires SSL)
A Unix-like OS

authenticator: -> Its an array so keep proper spaces class: CASServer::Authenticators::SQL database: adapter: mysql2 database: bigtappsys username: root password: root123 host: localhost user_table: users username_column: email password_column: encrypted_password

sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /home/balaji/ssl/apache.key -out /etc/apache2/ssl/apache.crt

http://stackoverflow.com/questions/991758/how-to-get-an-openssl-pem-file-from-key-and-crt-files

rvm --default use ruby-1.9.2 rubycas-server -c /home/balaji/rubyworks/rubycas-server/config.yml

http://localhost/phpCAS/docs/examples/example_simple.php

https://code.google.com/p/rubycas-client/

$2a$10$bbUIyrz9NhXbk2fO4sieW.jm7FV71f1ucgR7cbqDFf.ShDErSj2IS

http://jasig.github.io/cas/4.0.x/integration/CAS-Clients.html

For devise configuration

http://stackoverflow.com/questions/26381264/how-to-authenticate-users-using-rubycas-server-in-rails *****************_______ class: CASServer::Authenticators::SQLBcrypt

gem install bcrypt-ruby

⚠️ **GitHub.com Fallback** ⚠️