Class: FatZebra::Authenticate
- Inherits:
-
APIResource
- Object
- FatZebraObject
- APIResource
- FatZebra::Authenticate
- Defined in:
- lib/fat_zebra/authenticate.rb
Overview
FatZebra Authenticate
Manage 3DS2/SCA authentication for the API
-
session
-
authenticate
-
decode_session
Instance Attribute Summary
Attributes inherited from FatZebraObject
Attributes included from ObjectHelper
Class Method Summary collapse
-
.authenticate(params = {}, options = {}) ⇒ FatZebra::Authenticate
Authenticates a 3ds request.
-
.decode_session(params = {}, options = {}) ⇒ FatZebra::Authenticate
Decodes a JWT token for the 3DS authentication process.
-
.session(params = {}, options = {}) ⇒ FatZebra::Authenticate
Returns a JWT token for the 3DS authentication process.
Methods inherited from APIResource
Methods included from APIHelper
included, #request, #resource_name, #resource_path
Methods inherited from FatZebraObject
initialize_from, #load_response_api, #update_from
Methods included from Validation
#errors, #valid!, #valid?, #validates
Methods included from ObjectHelper
#[], #[]=, #add_accessor, #add_accessors, #add_data, #initialize, #inspect, #keys, #method_missing, #remove_accessor, #to_hash, #to_json, #update_attributes
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class FatZebra::ObjectHelper
Class Method Details
.authenticate(params = {}, options = {}) ⇒ FatZebra::Authenticate
Authenticates a 3ds request
57 58 59 60 61 62 |
# File 'lib/fat_zebra/authenticate.rb', line 57 def authenticate(params = {}, = {}) valid!(params, :authenticate) if respond_to?(:valid!) response = request(:post, resource_path, params, ) initialize_from(response) end |
.decode_session(params = {}, options = {}) ⇒ FatZebra::Authenticate
Decodes a JWT token for the 3DS authentication process
43 44 45 46 47 48 |
# File 'lib/fat_zebra/authenticate.rb', line 43 def decode_session(params = {}, = {}) valid!(params, :decode_session) if respond_to?(:valid!) response = request(:get, "#{resource_path}/decode_session", params, ) initialize_from(response) end |
.session(params = {}, options = {}) ⇒ FatZebra::Authenticate
Returns a JWT token for the 3DS authentication process
29 30 31 32 33 34 |
# File 'lib/fat_zebra/authenticate.rb', line 29 def session(params = {}, = {}) valid!(params, :session) if respond_to?(:valid!) response = request(:post, "#{resource_path}/session", params, ) initialize_from(response) end |