sp-rails-saml 1.0.2 → 1.0.3
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66c550813a06d4b4b058be271d3de67cd638114426c6f431318e8586027fdff2
|
4
|
+
data.tar.gz: 12d72ac3aaf78cd347493e959b84b3fe9271dfe43d598b9076f937fd0689797c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bf53b8a37d1fcead475cfe9c840f5b2572dab7f0a4c19841ffc4b069d20dcb83073532e8d50a36530f57f685bde08b6242a005e7c90c034463f27fa2e02d55a
|
7
|
+
data.tar.gz: da3c88943cdafb67bf2c444838e5b4d134dbfddfcce96fbae18050d3e4d101c48d8a12b4e003d8e8f1cbae3205ce5ba3bee0b0fee5ca030e7e6bb73cb02ad84c
|
@@ -11,6 +11,7 @@ module Saml
|
|
11
11
|
user = setting.user_class.find_by!(setting.user_find_key => params[:email])
|
12
12
|
account = user.send(setting.account_class.to_s.downcase.to_sym)
|
13
13
|
|
14
|
+
raise SpRailsSaml::SamlSettingNotFound if account.saml_setting.blank?
|
14
15
|
raise SpRailsSaml::SamlLoginForbidden if account.saml_setting.password_only?
|
15
16
|
|
16
17
|
if user.blank?
|
@@ -9,6 +9,7 @@ module Saml
|
|
9
9
|
setting = SpRailsSaml::Settings.instance
|
10
10
|
account = setting.account_class.find_by!(setting.account_find_key => params[setting.account_find_key])
|
11
11
|
|
12
|
+
raise SpRailsSaml::SamlSettingNotFound if account.saml_setting.blank?
|
12
13
|
raise SpRailsSaml::SamlLoginForbidden if account.saml_setting.password_only?
|
13
14
|
|
14
15
|
saml_setting = account.saml_setting
|
data/lib/sp-rails-saml.rb
CHANGED
@@ -20,6 +20,8 @@ module SpRailsSaml
|
|
20
20
|
|
21
21
|
class SamlResponseInvalid < Error; end
|
22
22
|
|
23
|
+
class SamlSettingNotFound < Error; end
|
24
|
+
|
23
25
|
autoload :Authnrequest, File.expand_path('./sp-rails-saml/authnrequest', __dir__)
|
24
26
|
autoload :SamlResponse, File.expand_path('./sp-rails-saml/saml_response', __dir__)
|
25
27
|
autoload :Metadata, File.expand_path('./sp-rails-saml/metadata', __dir__)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sp-rails-saml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- psyashes
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-11-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ruby-saml
|