Sha256: df3e7d221f091ebb62d218ccb83fc47103b16ff61e442d08cd65870fffa5cfdb

Contents?: true

Size: 1.2 KB

Versions: 15

Compression:

Stored size: 1.2 KB

Contents

= Authpds

This project provides a mechanism for authenticating via Ex Libris' Patron Directory Services (PDS) and provides hooks for making authorization decisions based on the user information provided by PDS.  It leverages the authlogic gem and depends on a User-like model.


Generate User-like model:
rails generate model User username:string email:string firstname:string \
	lastname:string mobile_phone:string crypted_password:string password_salt:string \
	session_id:string persistence_token:string login_count:string last_request_at:string \
	current_login_at:string last_login_at:string last_login_ip:string current_login_ip:string \
	user_attributes:text refreshed_at:datetime

Generate UserSession model
rails generate authlogic:session user_session

Create UserSessions controller
rails generate controller UserSessions --no-assets --no-helper

Mixin authpds methods into UserSessionsController
class UserSessionsController < ApplicationController
  include Authpds::Controllers::AuthpdsUserSessionsController
end

Mixin authpds methods into ApplicationController
class ApplicationController < ActionController::Base
  protect_from_forgery
  require 'authpds'
  include Authpds::Controllers::AuthpdsController
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
authpds-0.0.19 README.rdoc
authpds-0.0.18 README.rdoc
authpds-0.0.17 README.rdoc
authpds-0.0.16 README.rdoc
authpds-0.0.15 README.rdoc
authpds-0.0.14 README.rdoc
authpds-0.0.13 README.rdoc
authpds-0.0.12 README.rdoc
authpds-0.0.11 README.rdoc
authpds-0.0.10 README.rdoc
authpds-0.0.9 README.rdoc
authpds-0.0.8 README.rdoc
authpds-0.0.7 README.rdoc
authpds-0.0.6 README.rdoc
authpds-0.0.5 README.rdoc