soar_authentication_token 5.0.1 → 5.0.2

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: da82e78432f5421fea7acaf743e4f033cffc6d44
4
- data.tar.gz: 81cc335a3532dfc97edee20526fdc3b6633819a6
3
+ metadata.gz: 3a48730da938999d584f82f37148a419197fbb13
4
+ data.tar.gz: 5c298e1d5df764989317a5694fd3aecd0b348fa4
5
5
  SHA512:
6
- metadata.gz: bc388a37c4da3e085642ea7553f52958efad7a0bac7ebe39730e3567f11659a447e4b0ecce64704d6af15498193ce74912f5cf62b3344a73fc1ad35fad82f0b7
7
- data.tar.gz: b1a211f06fece5480a47fdd8b6344f3411022e88d031f604987a5b40297f9bef81962d15276978ca0272f45f01657cad92fc03e01499e880b4394c23e0ba027f
6
+ metadata.gz: 0a9c0294bc0afef2aaa8cb65615ec8958641f18defe54460edbd87ba130b8069546fb33ba9c36bd2d45e8b5527131d545f25eb21ebb17197830f002655e65321
7
+ data.tar.gz: a84774d5898107d0d87a1feb7330588413f0283754b6b8a01f5a12955e9ef8a81189243d9181b5561c3ec4818cece9ff9d8ba21867a1ca0321bdd7e97c401aaf
@@ -70,14 +70,14 @@ module SoarAuthenticationToken
70
70
  end
71
71
 
72
72
  def generate_test_token(generator_config)
73
- generator = SoarAuthenticationToken::TokenGenerator.new(generator_config)
73
+ generator = SoarAuthenticationToken::TokenGenerator.new(generator_config['auth_token_generator'])
74
74
  generator.inject_store_provider(DummyStorageClient.new)
75
75
  token, meta = generator.generate(authenticated_identifier: 'test')
76
76
  token
77
77
  end
78
78
 
79
79
  def validate_test_token(validator_config,test_token)
80
- validator = SoarAuthenticationToken::TokenValidator.new(validator_config)
80
+ validator = SoarAuthenticationToken::TokenValidator.new(validator_config['auth_token_validator'])
81
81
  validator.inject_store_provider(DummyStorageClient.new)
82
82
  validity, meta, message = validator.validate(authentication_token: test_token)
83
83
  validity
@@ -1,3 +1,3 @@
1
1
  module SoarAuthenticationToken
2
- VERSION = '5.0.1'
2
+ VERSION = '5.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar_authentication_token
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 5.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Barney de Villiers