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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a48730da938999d584f82f37148a419197fbb13
|
4
|
+
data.tar.gz: 5c298e1d5df764989317a5694fd3aecd0b348fa4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|