saml_camel 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79bb8b7ebdf4fa498fb793514369668f1687f766
4
- data.tar.gz: b632ad9653ef4159c3c2a6167ac7a5c4eb428ab3
3
+ metadata.gz: dafa06a040a8d7f97edcb980ecfb6448a8963b1c
4
+ data.tar.gz: 4ab3a2e992ab871320401e6306ef23e4de7ecbfc
5
5
  SHA512:
6
- metadata.gz: 3c6227efb17f0858c4d0904a4d9ecb3328456f2cdff225dfef0df2c088dc7d51c2bd5ec4c69e82c2548bd596e3e9de966ad604ea90194f3e9f68496f4bd31e6b
7
- data.tar.gz: 7c2c316ccad705a9e19e1a9663fe31b4580db9a5740f0bc0541dcfb65ad42499cf8ae08a2efae04800df02877c668c583e8157adb1d5cd1b58f267114821dc12
6
+ metadata.gz: 712eab68931a813f9564be234c3ad26d68205b4e578f377ebe0fb5256f1c5dd7b083bd1bc21172d7b73e9e61fb7707cb777835380bb7ffd7b536e401fbd6c8e9
7
+ data.tar.gz: cc38766650489a25ce12683eb085d07a7905ea4bd3c01bd4f588858c0ef18683e4f6a2627f645cf0293fc30512bb70cf9a4d57e1d09940184b12f67b32c2bc30
@@ -23,6 +23,7 @@ module SamlCamel
23
23
 
24
24
  response = OneLogin::RubySaml::Response.new(params[:SAMLResponse], :settings => saml_settings)
25
25
  response.settings = saml_settings
26
+
26
27
  if response.is_valid? # validate the SAML Response
27
28
  # authorize_success, log the user
28
29
  session[:saml_success] = true
@@ -14,6 +14,7 @@ module SamlCamel
14
14
  def self.auth_failure(error_context)
15
15
  logger = Logger.new("log/saml.log")
16
16
  logger.error("An error occured during authentication. #{error_context}")
17
+ logger.error("Backtrace: \n\t\t#{error_context.backtrace.join("\n\t\t")}")
17
18
  rescue
18
19
  logger.debug("Unknown Error During auth_failure logging.")
19
20
  end
@@ -12,13 +12,13 @@ module SamlCamel
12
12
  settings.idp_sso_target_url = sp_settings["sso_url"]
13
13
 
14
14
 
15
- #certificate to register with IDP and key to decrypt
15
+ # certificate to register with IDP and key to decrypt
16
16
  settings.certificate = File.read("saml/#{Rails.env}/saml_certificate.crt")
17
17
 
18
- #certificate to decrypt SAML response
18
+ # certificate to decrypt SAML response
19
19
  settings.private_key = File.read("saml/#{Rails.env}/saml_key.key")
20
20
 
21
- #certificate to verify IDP signature
21
+ # certificate to verify IDP signature
22
22
  settings.idp_cert = File.read("saml/#{Rails.env}/idp_certificate.crt")
23
23
 
24
24
  # Optional for most SAML IdPs
@@ -1,3 +1,3 @@
1
1
  module SamlCamel
2
- VERSION = '0.1.8'
2
+ VERSION = '0.1.9'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saml_camel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - 'Danai Adkisson '
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-19 00:00:00.000000000 Z
11
+ date: 2018-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails