warden-cognito 0.3.3 → 0.4.0

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: 40fa2362bb3ef3268cbecf7b60d3570ed4883e431c1705e8f9c90f8478eaac56
4
- data.tar.gz: f29115a0f11806c184f78070b468b2e5841f8ab609ff780d1fa94a87ef3d8c16
3
+ metadata.gz: 72decab69c879a899d9468de899c6d53792975e5cb2264c939be04bad97f4d75
4
+ data.tar.gz: 7ec3da2314db8b2b4d4c79e459626ac1a2ecfe6c7ef8fdd2f64cbb34485ab6c4
5
5
  SHA512:
6
- metadata.gz: 10d0c0098ef31565f797f73c210a2634d02f641fcff5736bc28a4a44bd749e68edc165c2fbc691f86454d1fa17a8ff21caddcafdf02e17f1dd47b5d9ed05f83c
7
- data.tar.gz: d3405f6873a37d95d119f88150c6e5e4c3ff03afe440acef16daafcd78368562e770df42e2ed64350ead50854965eae8e8c93ca3b6836ba4c756d6601ab6f175
6
+ metadata.gz: d2ad1bf73dfeb5e346cb704328965c4a9c5c853499c7ae1cf0845ae90feeaec74a29df7dcf968e2cd5f10abe3055529889873419a6eb883c4db3da97d41ea136
7
+ data.tar.gz: ae72cf25a49f230a128ecc8dad4e82926c0f76c4bd3b7bddb8e675d92944df3e4fed2c3ccf294e6a9c5714f219f0b64457ce9b1fdf89456f8f947dbf79d36e15
data/CHANGELOG.md CHANGED
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.4.0]
10
+ - Fix deprecated syntax on configuration
11
+
9
12
  ## [0.3.3]
10
13
  - Improve test helpers to include `jti` and `exp` claims and accept user-supplied claims.
11
14
 
@@ -36,7 +39,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
36
39
 
37
40
  - Scratching the gem
38
41
 
39
- [Unreleased]: https://github.com/barkibu/warden-cognito/compare/v0.3.3...HEAD
42
+ [Unreleased]: https://github.com/barkibu/warden-cognito/compare/v0.4.0...HEAD
43
+ [0.4.0]: https://github.com/barkibu/warden-cognito/compare/v0.3.3...v0.4.0
40
44
  [0.3.3]: https://github.com/barkibu/warden-cognito/compare/v0.3.2...v0.3.3
41
45
  [0.3.2]: https://github.com/barkibu/warden-cognito/compare/v0.3.1...v0.3.2
42
46
  [0.3.1]: https://github.com/barkibu/warden-cognito/compare/v0.3.0...v0.3.1
@@ -1,5 +1,5 @@
1
1
  module Warden
2
2
  module Cognito
3
- VERSION = '0.3.3'.freeze
3
+ VERSION = '0.4.0'.freeze
4
4
  end
5
5
  end
@@ -36,13 +36,13 @@ module Warden
36
36
  module_function :jwk_config_keys, :jwk_instance, :user_pool_configuration_keys, :user_pool_configurations
37
37
 
38
38
  setting :user_repository
39
- setting(:identifying_attribute, 'sub', &:to_s)
39
+ setting :identifying_attribute, default: 'sub', constructor: ->(attr) { attr.to_s }
40
40
  setting :after_local_user_not_found
41
- setting :cache, ActiveSupport::Cache::NullStore.new
41
+ setting :cache, default: ActiveSupport::Cache::NullStore.new
42
42
 
43
- setting(:jwk, nil) { |value| jwk_instance(value) }
43
+ setting :jwk, default: nil, constructor: ->(value) { jwk_instance(value) }
44
44
 
45
- setting(:user_pools, []) { |value| user_pool_configurations(value) }
45
+ setting :user_pools, default: [], constructor: ->(value) { user_pool_configurations(value) }
46
46
 
47
47
  Import = Dry::AutoInject(config)
48
48
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warden-cognito
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan F. Pérez
8
8
  - Léo Figea
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-05-06 00:00:00.000000000 Z
12
+ date: 2022-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -235,7 +235,7 @@ metadata:
235
235
  homepage_uri: https://github.com/barkibu/warden-cognito
236
236
  source_code_uri: https://github.com/barkibu/warden-cognito
237
237
  changelog_uri: https://github.com/barkibu/warden-cognito/blob/master/CHANGELOG.md
238
- post_install_message:
238
+ post_install_message:
239
239
  rdoc_options: []
240
240
  require_paths:
241
241
  - lib
@@ -250,8 +250,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
250
  - !ruby/object:Gem::Version
251
251
  version: '0'
252
252
  requirements: []
253
- rubygems_version: 3.0.3
254
- signing_key:
253
+ rubygems_version: 3.1.4
254
+ signing_key:
255
255
  specification_version: 4
256
256
  summary: Amazon Cognito authentication for Warden
257
257
  test_files: []