bsm-sso-client 0.9.2 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bsm/sso/client/abstract_resource.rb +1 -1
- data/lib/bsm/sso/client/failure_app.rb +3 -4
- metadata +5 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b394f3f631197d63b0d3d2557eba1949a06a850
|
4
|
+
data.tar.gz: 2b7a0a0402f07713581c9b3b3dfd98dd10fda5a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d872ba7b7987d8f39dea6926cbd7a8580fbbcc4c8abb8565cb6aa7c5b442d641308f76a6c03a517ff80781dc1043afd12ffd16d09e63f7a12c18d8c804a91090
|
7
|
+
data.tar.gz: fd718d99c1ca1f7b8973d52ec9f4add3b1f427cb58309ea38f0053ba578415b7b1b6ff2b9b119c9835449ea6c452c241e44679ba5c94942c44eef65554218ef6
|
@@ -12,7 +12,7 @@ class Bsm::Sso::Client::AbstractResource < Hash
|
|
12
12
|
@site = Excon.new url,
|
13
13
|
:idempotent => true,
|
14
14
|
:expects => [200, 422],
|
15
|
-
:headers => { 'Accept' => Mime
|
15
|
+
:headers => { 'Accept' => Mime[:json].to_s, 'Content-Type' => Mime[:json].to_s }
|
16
16
|
end
|
17
17
|
|
18
18
|
# @return [Excon::Connection] site connection
|
@@ -1,5 +1,4 @@
|
|
1
1
|
class Bsm::Sso::Client::FailureApp < ActionController::Metal
|
2
|
-
include ActionController::RackDelegation
|
3
2
|
include ActionController::Redirecting
|
4
3
|
include Bsm::Sso::Client::UrlHelpers
|
5
4
|
|
@@ -12,7 +11,7 @@ class Bsm::Sso::Client::FailureApp < ActionController::Metal
|
|
12
11
|
end
|
13
12
|
|
14
13
|
def respond
|
15
|
-
if Bsm::Sso::Client.navigational_formats.include?(request.format.try(:to_sym)) || request.accepts.include?(Mime
|
14
|
+
if Bsm::Sso::Client.navigational_formats.include?(request.format.try(:to_sym)) || request.accepts.include?(Mime[:html])
|
16
15
|
request.xhr? ? respond_with_js! : redirect!
|
17
16
|
else
|
18
17
|
stop!
|
@@ -20,7 +19,7 @@ class Bsm::Sso::Client::FailureApp < ActionController::Metal
|
|
20
19
|
end
|
21
20
|
|
22
21
|
def redirect!
|
23
|
-
path = env["warden.options"].try(:[], :attempted_path) || request.fullpath
|
22
|
+
path = request.env["warden.options"].try(:[], :attempted_path) || request.fullpath
|
24
23
|
redirect_to Bsm::Sso::Client.user_class.sso_sign_in_url(:service => service_url(path)), :status => 303
|
25
24
|
end
|
26
25
|
|
@@ -32,7 +31,7 @@ class Bsm::Sso::Client::FailureApp < ActionController::Metal
|
|
32
31
|
|
33
32
|
def stop!
|
34
33
|
self.status = 403
|
35
|
-
self.content_type = Mime
|
34
|
+
self.content_type = Mime[:html]
|
36
35
|
self.response_body = "<html><head></head><body><h1>Access Forbidden</h1></body></html>"
|
37
36
|
end
|
38
37
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bsm-sso-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dimitrij Denissenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 4.1.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: 6.0.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 4.1.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 6.0.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: actionpack
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -232,20 +232,6 @@ dependencies:
|
|
232
232
|
- - ">="
|
233
233
|
- !ruby/object:Gem::Version
|
234
234
|
version: '0'
|
235
|
-
- !ruby/object:Gem::Dependency
|
236
|
-
name: protected_attributes
|
237
|
-
requirement: !ruby/object:Gem::Requirement
|
238
|
-
requirements:
|
239
|
-
- - ">="
|
240
|
-
- !ruby/object:Gem::Version
|
241
|
-
version: '0'
|
242
|
-
type: :development
|
243
|
-
prerelease: false
|
244
|
-
version_requirements: !ruby/object:Gem::Requirement
|
245
|
-
requirements:
|
246
|
-
- - ">="
|
247
|
-
- !ruby/object:Gem::Version
|
248
|
-
version: '0'
|
249
235
|
description: ''
|
250
236
|
email: dimitrij@blacksquaremedia.com
|
251
237
|
executables: []
|
@@ -289,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
289
275
|
version: 1.8.0
|
290
276
|
requirements: []
|
291
277
|
rubyforge_project:
|
292
|
-
rubygems_version: 2.
|
278
|
+
rubygems_version: 2.5.2
|
293
279
|
signing_key:
|
294
280
|
specification_version: 4
|
295
281
|
summary: BSM's internal SSO client
|