trusona 0.16.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.
Files changed (84) hide show
  1. checksums.yaml +7 -0
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/.env.example +4 -0
  5. data/.gitignore +20 -0
  6. data/.rspec +3 -0
  7. data/.ruby-version +1 -0
  8. data/.travis.yml +24 -0
  9. data/Gemfile +8 -0
  10. data/Guardfile +54 -0
  11. data/LICENSE +201 -0
  12. data/README.md +234 -0
  13. data/Rakefile +8 -0
  14. data/bin/console +21 -0
  15. data/bin/setup +8 -0
  16. data/certs/trusona.pem +26 -0
  17. data/checksum/trusona-0.16.0.gem.sha512 +1 -0
  18. data/integrations/device_user_binding_integration_spec.rb +6 -0
  19. data/integrations/identity_documents_spec.rb +28 -0
  20. data/integrations/spec_helper.rb +23 -0
  21. data/integrations/tru_code_spec.rb +80 -0
  22. data/integrations/trusonafication_spec.rb +61 -0
  23. data/integrations/user_accounts_spec.rb +39 -0
  24. data/integrations/user_identifiers_spec.rb +32 -0
  25. data/lib/trusona.rb +157 -0
  26. data/lib/trusona/api/client.rb +60 -0
  27. data/lib/trusona/api/hashed_message.rb +71 -0
  28. data/lib/trusona/api/signed_request.rb +96 -0
  29. data/lib/trusona/api/verified_response.rb +85 -0
  30. data/lib/trusona/device.rb +31 -0
  31. data/lib/trusona/device_user_binding.rb +56 -0
  32. data/lib/trusona/errors.rb +51 -0
  33. data/lib/trusona/helpers/key_normalizer.rb +15 -0
  34. data/lib/trusona/helpers/time_normalizer.rb +17 -0
  35. data/lib/trusona/identity_document.rb +64 -0
  36. data/lib/trusona/mappers/base_mapper.rb +69 -0
  37. data/lib/trusona/mappers/device_mapper.rb +13 -0
  38. data/lib/trusona/mappers/device_user_binding_mapper.rb +13 -0
  39. data/lib/trusona/mappers/identity_document_mapper.rb +17 -0
  40. data/lib/trusona/mappers/nil_mapper.rb +11 -0
  41. data/lib/trusona/mappers/tru_code_mapper.rb +13 -0
  42. data/lib/trusona/mappers/trusonafication_mapper.rb +19 -0
  43. data/lib/trusona/mappers/user_account_mapper.rb +13 -0
  44. data/lib/trusona/mappers/user_identifier_mapper.rb +13 -0
  45. data/lib/trusona/resources/base_resource.rb +29 -0
  46. data/lib/trusona/resources/device.rb +22 -0
  47. data/lib/trusona/resources/device_user_binding.rb +30 -0
  48. data/lib/trusona/resources/device_user_binding_activation.rb +27 -0
  49. data/lib/trusona/resources/identity_document.rb +36 -0
  50. data/lib/trusona/resources/tru_code.rb +42 -0
  51. data/lib/trusona/resources/trusonafication.rb +137 -0
  52. data/lib/trusona/resources/user_account.rb +84 -0
  53. data/lib/trusona/resources/user_identifier.rb +49 -0
  54. data/lib/trusona/resources/validators.rb +22 -0
  55. data/lib/trusona/services/account_lookups_service.rb +17 -0
  56. data/lib/trusona/services/base_service.rb +117 -0
  57. data/lib/trusona/services/device_user_bindings_service.rb +22 -0
  58. data/lib/trusona/services/devices_service.rb +15 -0
  59. data/lib/trusona/services/identity_documents_service.rb +31 -0
  60. data/lib/trusona/services/tru_codes_service.rb +26 -0
  61. data/lib/trusona/services/trusonafication_service.rb +16 -0
  62. data/lib/trusona/services/user_accounts_service.rb +17 -0
  63. data/lib/trusona/services/user_identifiers_service.rb +16 -0
  64. data/lib/trusona/tru_code.rb +38 -0
  65. data/lib/trusona/tru_code_config.rb +45 -0
  66. data/lib/trusona/trusonafication.rb +133 -0
  67. data/lib/trusona/user_account.rb +17 -0
  68. data/lib/trusona/user_identifier.rb +15 -0
  69. data/lib/trusona/version.rb +5 -0
  70. data/lib/trusona/workers/device_finder.rb +18 -0
  71. data/lib/trusona/workers/device_user_binding_activator.rb +25 -0
  72. data/lib/trusona/workers/device_user_binding_creator.rb +26 -0
  73. data/lib/trusona/workers/identity_document_finder.rb +25 -0
  74. data/lib/trusona/workers/tru_code_creator.rb +17 -0
  75. data/lib/trusona/workers/tru_code_finder.rb +19 -0
  76. data/lib/trusona/workers/trusonafication_creator.rb +46 -0
  77. data/lib/trusona/workers/trusonafication_finder.rb +27 -0
  78. data/lib/trusona/workers/user_account_finder.rb +39 -0
  79. data/lib/trusona/workers/user_identifier_creator.rb +17 -0
  80. data/lib/trusona/workers/user_identifier_finder.rb +29 -0
  81. data/release-gem +17 -0
  82. data/trusona.gemspec +43 -0
  83. metadata +333 -0
  84. metadata.gz.sig +1 -0
@@ -0,0 +1 @@
1
+ g�tL;�S�������<�6���h����c��c�Z�a�Py:�G���M���O*S[Ãb�i�v� ���n�d�Tgo��l�ų�H��21��)��� �n<ζ�;ܒL���Ɵrl5^c�4m0�-���ڕx72�ua M�V����Q|�̈́�t;E��>U̒Z�1���}:�M��� M��"83 ��Z����Є�"��ݭ��P I3��4}e�����P|4����I}�O��i|J���M g�*��,��:���@)��v4��O�}����dˌ�����1s��