identity 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/identity.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'identity'
3
- s.version = '1.0.1'
3
+ s.version = '1.0.2'
4
4
  s.date = '2012-09-17'
5
5
  s.summary = "Ruby ufp Identity Library"
6
6
  s.description = "A Ruby library for integrations with ufp Identity"
@@ -1,11 +1,5 @@
1
1
  require 'rest-client'
2
2
  require 'resolver.rb'
3
- require 'logger'
4
-
5
- log = Logger.new(STDOUT)
6
- log.level = Logger::DEBUG
7
-
8
- RestClient.log = log
9
3
 
10
4
  module Identity
11
5
  class ConnectionHandler
@@ -3,26 +3,15 @@ require 'warden'
3
3
  module Warden
4
4
  module Strategies
5
5
  class IdentityStrategy < Warden::Strategies::Base
6
- def initialize(env, scope)
7
- super(env, scope)
8
- Rails.logger.debug("initialize, #{self}")
9
- config = Rails.configuration
10
- handler = Identity::ConnectionHandler.new config.identity_key, config.identity_key_password, config.identity_certificate, config.identity_truststore
11
- # create the provider
12
- @provider = Identity::Provider::IdentityServiceProvider.new handler
13
- end
14
-
15
6
  def valid?
16
- Rails.logger.debug("valid?, #{self}")
17
- #Rails.logger.debug("session #{session.inspect}")
18
- #Rails.logger.debug("params #{params.inspect}")
19
7
  params["username"] || session[:identity_username_key]
20
8
  end
21
9
 
22
10
  def authenticate!
23
- Rails.logger.debug("authenticate!, #{self}")
24
- #Rails.logger.debug("session #{session.inspect}")
25
- #Rails.logger.debug("params #{params.inspect}")
11
+ config = Rails.configuration
12
+ handler = Identity::ConnectionHandler.new config.identity_key, config.identity_key_password, config.identity_certificate, config.identity_truststore
13
+ # create the provider
14
+ @provider = Identity::Provider::IdentityServiceProvider.new handler
26
15
 
27
16
  if session[:identity_username_key].nil? && session[:identity_display_items].nil?
28
17
  pretext = @provider.pre_authenticate params["username"], request.ip
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 1
9
- version: 1.0.1
8
+ - 2
9
+ version: 1.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Richard Levenberg