login_radius 10.0.0 → 11.3.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 -986
  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 -193
  23. data/lib/login_radius/api/social/social_api.rb +784 -802
  24. data/lib/login_radius/error.rb +7 -7
  25. data/lib/login_radius/request_client.rb +316 -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: aa5daa28eb8279b156936e6dd19a4b5e9dc0cbc64581abfe9a620cc5e654f2d8
4
- data.tar.gz: a2d36e1c3591289b7c923adc3bd808dc671427a8f2f97c7f37e9970d74fc57b0
3
+ metadata.gz: 1548a06b5a983aa27237e2a227f3c689f14fb510ad380764d93c562c68f60259
4
+ data.tar.gz: 4f37e09e9ed84615b939afca5c02ce0f4e20d91b312f665a3dafea42c4bd21cc
5
5
  SHA512:
6
- metadata.gz: 9ffb6e822a9e6f6e141e427833b109c4a951a01622112ddad484cb73e1d37c36d35aa6eed36cb10a8672bdd3a7796cd860fe9fdc5ed86b3d5daa73138089cb2a
7
- data.tar.gz: 4480efe8735b3b5c7d93abbb470d9f9b019d00c2035a128a00dcee2cffd1230bacf0b7589c882913a6a0c548b00641e769c1699e768aa5b0dccad8b5bacb8d28
6
+ metadata.gz: e205518ba3bb793bc30745ac85ef18473e7b0af4d8888c7add521d1dfaf6152960715ae2af0ae6848d27e3fa67552fff8227b57f34fa6b41c249377fa91da2ae
7
+ data.tar.gz: e6889286f27fcbe71a12e4736015619a2d2472e546217fee7d022d420fbc42ebf9b8907d94265dfc4185f0bfb86f4f9a8d668fe7c678acf1a89ee33d0f8976f0
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', '= 10.0.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
+ ```
6
+ gem 'login_radius', '~> 11.3.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/).