usps-support 0.2.61 → 0.2.63

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5df100f657cd2bf0ad1e32873c7e0cc6f2e24f828a72df32c8283e3c1fea987
4
- data.tar.gz: 3d15f2808d6dfe420ad2d97897ddc4162b051d7c711e90b4e01a49865202bd13
3
+ metadata.gz: 3748994cb90c89a2e4e0f0015e82321d1921a759d72d842a5b107955f2b565b0
4
+ data.tar.gz: 3fdb6b4d1dcd14d60299d0b58d8a48125ccf3d8c1318880175189a8265051748
5
5
  SHA512:
6
- metadata.gz: 42c4e0226379f4960173c3000fef43c1d3a2d74c8b7087578ccb30e86ca52bc94236616be87d282895c28307cd195bd760bb2537d5dafdfacbd0e6aa23d5d5d4
7
- data.tar.gz: '093a40a13f2ae5d14b99d843db8012e6bd4a96c44024aeafb855f1c00d361bbb6c43a0cae2a4b8104b25964df6bdbf956f90a84b3067462fd0ea27027e373191'
6
+ metadata.gz: d311aed3d06dc4a4a0ffffb5d690616f6d17110853fdecbba22fe9f3665ec402737c1d41e951c53a961e5fa88bf556edd94fc21699648a4ab6e789afe4d05f66
7
+ data.tar.gz: 95075ce81bbf0a87f4abc1c154952c515e02be8cd7d9db58116e1e4959ed5f43a3490cbce4f146b2181bd0d6971ce9dd02a3dc62a479239a7fe7f9fbbfa4ad69
@@ -15,7 +15,7 @@ module Usps::Support
15
15
  skip_before_action :authenticate_user_from_jwt!, raise: false
16
16
  skip_after_action :verify_authorized, raise: false
17
17
 
18
- # Prepended: the inherited filters reach `set_new_jwt`, which would log in a valid token before this ran.
18
+ # Prepended, so a refused request doesn't reach the inherited filters, which look up the member.
19
19
  prepend_before_action :require_trusted_origin
20
20
 
21
21
  def create
@@ -68,11 +68,13 @@ module Usps::Support
68
68
  [302, { 'Location' => url, 'Content-Type' => 'text/html' }, []]
69
69
  end
70
70
 
71
- def login_url_base
71
+ def login_url_base = "#{LOGIN_URL}?#{login_target}&v=#{Usps::JwtAuth::LOGIN_VERSION}"
72
+
73
+ def login_target
72
74
  if Usps::JwtAuth.config.environment.development?
73
- "#{LOGIN_URL}?local&port=#{ENV.fetch('PORT', '3000')}"
75
+ "local&port=#{ENV.fetch('PORT', '3000')}"
74
76
  else
75
- "#{LOGIN_URL}?application=#{Usps::JwtAuth.config.audience}"
77
+ "application=#{Usps::JwtAuth.config.audience}"
76
78
  end
77
79
  end
78
80
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Usps
4
4
  module Support
5
- VERSION = '0.2.61'
5
+ VERSION = '0.2.63'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usps-support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.61
4
+ version: 0.2.63
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander
@@ -66,7 +66,7 @@ dependencies:
66
66
  version: '1'
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: 1.2.4
69
+ version: 1.6.0
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '1'
77
77
  - - ">="
78
78
  - !ruby/object:Gem::Version
79
- version: 1.2.4
79
+ version: 1.6.0
80
80
  description: Shared support for USPS Rails applications
81
81
  email:
82
82
  - jsfiander@gmail.com