Class: CaptchaManager
- Inherits:
-
Object
- Object
- CaptchaManager
- Defined in:
- lib/trustcaptcha/captcha_manager.rb
Defined Under Namespace
Classes: SecretKeyInvalidException, TokenDecryptionFailedException, VerificationNotFoundException, VerificationTokenInvalidException
Class Method Summary collapse
Class Method Details
.get_verification_result(base64_secret_key, base64_verification_token) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/trustcaptcha/captcha_manager.rb', line 14 def self.get_verification_result(base64_secret_key, base64_verification_token) verification_token = get_verification_token(base64_verification_token) secret_key = get_secret_key(base64_secret_key) decrypted_access_token = decrypt_access_token(secret_key, verification_token) fetch_verification_result(verification_token, decrypted_access_token) end |