login_radius 11.0.0 → 11.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +19 -0
  3. data/LICENSE.txt +21 -21
  4. data/README.md +58 -58
  5. data/lib/login_radius/api/account/account_api.rb +581 -581
  6. data/lib/login_radius/api/account/role_api.rb +330 -330
  7. data/lib/login_radius/api/account/sott_api.rb +47 -47
  8. data/lib/login_radius/api/advanced/configuration_api.rb +57 -57
  9. data/lib/login_radius/api/advanced/consent_management_api.rb +161 -161
  10. data/lib/login_radius/api/advanced/custom_object_api.rb +316 -316
  11. data/lib/login_radius/api/advanced/custom_registration_data_api.rb +195 -195
  12. data/lib/login_radius/api/advanced/multi_factor_authentication_api.rb +942 -606
  13. data/lib/login_radius/api/advanced/re_authentication_api.rb +317 -243
  14. data/lib/login_radius/api/advanced/web_hook_api.rb +101 -101
  15. data/lib/login_radius/api/authentication/authentication_api.rb +1036 -989
  16. data/lib/login_radius/api/authentication/one_touch_login_api.rb +160 -160
  17. data/lib/login_radius/api/authentication/password_less_login_api.rb +202 -158
  18. data/lib/login_radius/api/authentication/phone_authentication_api.rb +329 -329
  19. data/lib/login_radius/api/authentication/pin_authentication_api.rb +316 -316
  20. data/lib/login_radius/api/authentication/risk_based_authentication_api.rb +286 -286
  21. data/lib/login_radius/api/authentication/smart_login_api.rb +146 -146
  22. data/lib/login_radius/api/social/native_social_api.rb +255 -255
  23. data/lib/login_radius/api/social/social_api.rb +784 -806
  24. data/lib/login_radius/error.rb +7 -7
  25. data/lib/login_radius/request_client.rb +356 -295
  26. data/lib/login_radius/response.rb +18 -12
  27. data/lib/login_radius/version.rb +2 -2
  28. data/lib/login_radius.rb +30 -30
  29. data/login_radius.gemspec +25 -28
  30. metadata +8 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d83448656f441be44e6f81c7d37111594e90f1477cdd801f294c1179f2eca1c1
4
- data.tar.gz: f9c2cf95147d247c441d05180efb00a5435433c5ddfa464ccc5382f77f776694
3
+ metadata.gz: b0f37dbd647854caec292ac3a27dae1cc46f379843a34f56c923bd92db81e294
4
+ data.tar.gz: cd9f01b10e3f61b63ff6dc8938856a35622f73399b5509b0986f3b4d76d93a5c
5
5
  SHA512:
6
- metadata.gz: 1491203d9e9b02172bf38234e3d527a1de96b9186811997ef5f0fcb132e9abe736538a14bb17421aedfb814b01c6c44e31761e0e6360a67580dbc327caf68813
7
- data.tar.gz: 988dee1abbf3473b9f1847a844d37f51e3fd50dda6eea3a0d10ce2d05220694e8de210e6a15ebccf763439bb27745a781253c6c7227fdd7b461f5fc3bbc2b9dd
6
+ metadata.gz: 40f3b4f32ab8fd4e634060e35f3de1c3e3da90f27d6db2fd3f6a51a38f75ca02100f784ca8ecfd41e38fb5e6e9dad749b8038017ab91eacf322d418bc20bb06e
7
+ data.tar.gz: 295da43200cbcbb3d5167386ec9bb67871ce2ba85af8daa49fd8d5cb915c0248bca2d762951c9e0fb90ad2c5b5686cc753ab0c16701909758eadbf5f76502c63
data/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2022 LoginRadius Inc.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
data/LICENSE.txt CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2018
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -1,58 +1,58 @@
1
- ## Installation
2
-
3
- Install the SDK by adding LoginRadius to your application's `Gemfile`.
4
-
5
- ```
6
- gem 'login_radius', '~> 11.0'
7
- ```
8
-
9
- Then, run `$ bundle`. A copy of the SDK can also be found on our [Github](https://github.com/LoginRadius/ruby-on-rails-gem/tree/master).
10
-
11
- ## Quickstart Guide
12
-
13
- 1)Before using any of the functions available in the library, its corresponding module must first define the global constant in `config/application.yml`:
14
-
15
- ```
16
- SITE_NAME: "<site name>"
17
- API_KEY: "<api-key>"
18
- API_SECRET: "<api-secret>"
19
- CUSTOM_API_DOMAIN: "<custom-domain-url-if-any>"
20
- API_REQUEST_SIGNING: "false"
21
- ```
22
-
23
- 2)After define the configuration key details, its corresponding module must first be instantiated:
24
-
25
- Create `login_radius.rb` in `/config/initializers`:
26
-
27
-
28
-
29
- ```
30
- require 'login_radius'
31
-
32
- ::AccountApi = LoginRadius::AccountApi.new
33
- ::RoleApi = LoginRadius::RoleApi.new
34
- ::SottApi = LoginRadius::SottApi.new
35
-
36
- ::ConfigurationApi = LoginRadius::ConfigurationApi.new
37
- ::ConsentManagementApi = LoginRadius::ConsentManagementApi.new
38
- ::CustomObjectApi = LoginRadius::CustomObjectApi.new
39
- ::CustomRegistrationDataApi = LoginRadius::CustomRegistrationDataApi.new
40
- ::MultiFactorAuthenticationApi = LoginRadius::MultiFactorAuthenticationApi.new
41
- ::ReAuthenticationApi = LoginRadius::ReAuthenticationApi.new
42
- ::WebHookApi = LoginRadius::WebHookApi.new
43
-
44
- ::AuthenticationApi = LoginRadius::AuthenticationApi.new
45
- ::OneTouchLoginApi = LoginRadius::OneTouchLoginApi.new
46
- ::PasswordLessLoginApi = LoginRadius::PasswordLessLoginApi.new
47
- ::PhoneAuthenticationApi = LoginRadius::PhoneAuthenticationApi.new
48
- ::PINAuthenticationApi = LoginRadius::PINAuthenticationApi.new
49
- ::RiskBasedAuthenticationApi = LoginRadius::RiskBasedAuthenticationApi.new
50
- ::SmartLoginApi = LoginRadius::SmartLoginApi.new
51
-
52
- ::NativeSocialApi = LoginRadius::NativeSocialApi.new
53
- ::SocialApi = LoginRadius::SocialApi.new
54
- ```
55
-
56
- Please note that you only have to initiate modules you need.
57
-
58
- The API key and secret can be obtained from the LoginRadius Admin Console. Details on retrieving your key and secret can be found [here](loginradius.com/docs/api/v2/admin-console/platform-security/api-key-and-secret/).
1
+ ## Installation
2
+
3
+ Install the SDK by adding LoginRadius to your application's `Gemfile`.
4
+
5
+ ```shell
6
+ gem 'login_radius', '~> 11.4.0'
7
+ ```
8
+
9
+ Then, run `$ bundle`. A copy of the SDK can also be found on our [Github](https://github.com/LoginRadius/ruby-on-rails-gem/tree/master).
10
+
11
+ ## Quickstart Guide
12
+
13
+ 1)Before using any of the functions available in the library, its corresponding module must first define the global constant in `config/application.yml`:
14
+
15
+ ```ruby
16
+ SITE_NAME: "<site name>"
17
+ API_KEY: "<api-key>"
18
+ API_SECRET: "<api-secret>"
19
+ CUSTOM_API_DOMAIN: "<custom-domain-url-if-any>"
20
+ API_REQUEST_SIGNING: "false"
21
+ ```
22
+
23
+ 2)After define the configuration key details, its corresponding module must first be instantiated:
24
+
25
+ Create `login_radius.rb` in `/config/initializers`:
26
+
27
+
28
+
29
+ ```ruby
30
+ require 'login_radius'
31
+
32
+ ::AccountApi = LoginRadius::AccountApi.new
33
+ ::RoleApi = LoginRadius::RoleApi.new
34
+ ::SottApi = LoginRadius::SottApi.new
35
+
36
+ ::ConfigurationApi = LoginRadius::ConfigurationApi.new
37
+ ::ConsentManagementApi = LoginRadius::ConsentManagementApi.new
38
+ ::CustomObjectApi = LoginRadius::CustomObjectApi.new
39
+ ::CustomRegistrationDataApi = LoginRadius::CustomRegistrationDataApi.new
40
+ ::MultiFactorAuthenticationApi = LoginRadius::MultiFactorAuthenticationApi.new
41
+ ::ReAuthenticationApi = LoginRadius::ReAuthenticationApi.new
42
+ ::WebHookApi = LoginRadius::WebHookApi.new
43
+
44
+ ::AuthenticationApi = LoginRadius::AuthenticationApi.new
45
+ ::OneTouchLoginApi = LoginRadius::OneTouchLoginApi.new
46
+ ::PasswordLessLoginApi = LoginRadius::PasswordLessLoginApi.new
47
+ ::PhoneAuthenticationApi = LoginRadius::PhoneAuthenticationApi.new
48
+ ::PINAuthenticationApi = LoginRadius::PINAuthenticationApi.new
49
+ ::RiskBasedAuthenticationApi = LoginRadius::RiskBasedAuthenticationApi.new
50
+ ::SmartLoginApi = LoginRadius::SmartLoginApi.new
51
+
52
+ ::NativeSocialApi = LoginRadius::NativeSocialApi.new
53
+ ::SocialApi = LoginRadius::SocialApi.new
54
+ ```
55
+
56
+ Please note that you only have to initiate modules you need.
57
+
58
+ The API key and secret can be obtained from the LoginRadius Admin Console. Details on retrieving your key and secret can be found [here](loginradius.com/docs/api/v2/admin-console/platform-security/api-key-and-secret/).