Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError (undefined method `text' for nil:NilClass): #22

Open
sagarjauhari opened this issue Jun 22, 2016 · 3 comments
Open

NoMethodError (undefined method `text' for nil:NilClass): #22

sagarjauhari opened this issue Jun 22, 2016 · 3 comments

Comments

@sagarjauhari
Copy link

NoMethodError (undefined method `text' for nil:NilClass): 
  vendor/bundle/ruby/2.2.0/gems/omniauth-wsfed-0.3.3.pre.beta/lib/omniauth/strategies/wsfed/saml_2_token.rb:18:in `issuer' 
  vendor/bundle/ruby/2.2.0/gems/omniauth-wsfed-0.3.3.pre.beta/lib/omniauth/strategies/wsfed/auth_callback.rb:50:in `issuer' 
  vendor/bundle/ruby/2.2.0/gems/omniauth-wsfed-0.3.3.pre.beta/lib/omniauth/strategies/wsfed/auth_callback_validator.rb:32:in `validate_issuer!' 
  vendor/bundle/ruby/2.2.0/gems/omniauth-wsfed-0.3.3.pre.beta/lib/omniauth/strategies/wsfed/auth_callback_validator.rb:21:in `validate!' 
  vendor/bundle/ruby/2.2.0/gems/omniauth-wsfed-0.3.3.pre.beta/lib/omniauth/strategies/wsfed.rb:41:in `callback_phase' 
@sagarjauhari
Copy link
Author

Not sure if this is problem for only the SP that I'm trying to integrate with

@thatRailsGuy
Copy link

I'm seeing this too.

@thatRailsGuy
Copy link

It's in the base64_cert... line below

          def validate(idp_cert_fingerprint, soft = true)

            # get cert from response

            base64_cert = self.elements["//ds:X509Certificate"].text

            cert_text   = Base64.decode64(base64_cert)

            cert        = OpenSSL::X509::Certificate.new(cert_text)

            # check cert matches registered idp cert

            fingerprint = Digest::SHA1.hexdigest(cert.to_der)

I'm on the 0.3.3.pre.beta version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants