fusionauth_client 1.48.0 → 1.50.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +6 -0
  3. data/.github/fusionauth/.env +6 -0
  4. data/.github/fusionauth/docker-compose.yml +51 -0
  5. data/.github/fusionauth/kickstart.json +46 -0
  6. data/.github/workflows/docs.yml +31 -0
  7. data/.github/workflows/test.yml +31 -0
  8. data/.ruby-version +1 -1
  9. data/Gemfile +5 -6
  10. data/Gemfile.lock +20 -23
  11. data/README.md +225 -0
  12. data/build.savant +2 -2
  13. data/doc/FusionAuth/FusionAuthClient.html +14185 -0
  14. data/doc/FusionAuth/FusionAuthClient.md +197 -80
  15. data/doc/FusionAuth.html +108 -0
  16. data/doc/FusionAuth.md +1 -1
  17. data/doc/created.rid +2 -2
  18. data/doc/css/fonts.css +167 -0
  19. data/doc/css/rdoc.css +619 -0
  20. data/doc/fonts/Lato-Light.ttf +0 -0
  21. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  22. data/doc/fonts/Lato-Regular.ttf +0 -0
  23. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  24. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  25. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  26. data/doc/images/add.png +0 -0
  27. data/doc/images/arrow_up.png +0 -0
  28. data/doc/images/brick.png +0 -0
  29. data/doc/images/brick_link.png +0 -0
  30. data/doc/images/bug.png +0 -0
  31. data/doc/images/bullet_black.png +0 -0
  32. data/doc/images/bullet_toggle_minus.png +0 -0
  33. data/doc/images/bullet_toggle_plus.png +0 -0
  34. data/doc/images/date.png +0 -0
  35. data/doc/images/delete.png +0 -0
  36. data/doc/images/find.png +0 -0
  37. data/doc/images/loadingAnimation.gif +0 -0
  38. data/doc/images/macFFBgHack.png +0 -0
  39. data/doc/images/package.png +0 -0
  40. data/doc/images/page_green.png +0 -0
  41. data/doc/images/page_white_text.png +0 -0
  42. data/doc/images/page_white_width.png +0 -0
  43. data/doc/images/plugin.png +0 -0
  44. data/doc/images/ruby.png +0 -0
  45. data/doc/images/tag_blue.png +0 -0
  46. data/doc/images/tag_green.png +0 -0
  47. data/doc/images/transparent.png +0 -0
  48. data/doc/images/wrench.png +0 -0
  49. data/doc/images/wrench_orange.png +0 -0
  50. data/doc/images/zoom.png +0 -0
  51. data/doc/index.html +89 -0
  52. data/doc/js/darkfish.js +84 -0
  53. data/doc/js/navigation.js +105 -0
  54. data/doc/js/navigation.js.gz +0 -0
  55. data/doc/js/search.js +110 -0
  56. data/doc/js/search_index.js +1 -0
  57. data/doc/js/search_index.js.gz +0 -0
  58. data/doc/js/searcher.js +229 -0
  59. data/doc/js/searcher.js.gz +0 -0
  60. data/doc/table_of_contents.html +1765 -0
  61. data/fusionauth-ruby-client.iml +1 -4
  62. data/fusionauth_client.gemspec +2 -2
  63. data/lib/fusionauth/fusionauth_client.rb +112 -29
  64. data/lib/fusionauth/rest_client.rb +1 -1
  65. metadata +54 -4
  66. data/README.adoc +0 -106
  67. data/doc/index.db +0 -0
@@ -8,8 +8,5 @@
8
8
  </content>
9
9
  <orderEntry type="jdk" jdkName="rbenv: 2.5.9" jdkType="RUBY_SDK" />
10
10
  <orderEntry type="sourceFolder" forTests="false" />
11
- <orderEntry type="library" scope="PROVIDED" name="bundler (v2.2.5, rbenv: 2.5.9) [gem]" level="application" />
12
- <orderEntry type="library" scope="PROVIDED" name="minitest (v5.8.3, rbenv: 2.5.9) [gem]" level="application" />
13
- <orderEntry type="library" scope="PROVIDED" name="rake (v12.3.3, rbenv: 2.5.9) [gem]" level="application" />
14
11
  </component>
15
- </module>
12
+ </module>
@@ -1,6 +1,6 @@
1
1
  # coding: utf-8
2
2
 
3
- # Copyright (c) 2022, FusionAuth, All Rights Reserved
3
+ # Copyright (c) 2024, FusionAuth, All Rights Reserved
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
19
19
 
20
20
  Gem::Specification.new do |spec|
21
21
  spec.name = 'fusionauth_client'
22
- spec.version = '1.48.0'
22
+ spec.version = '1.50.0'
23
23
  spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
24
24
  spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
25
25
 
@@ -46,7 +46,7 @@ module FusionAuth
46
46
  # "actioner". Both user ids are required in the request object.
47
47
  #
48
48
  # @param request [OpenStruct, Hash] The action request that includes all the information about the action being taken including
49
- # the id of the action, any options and the duration (if applicable).
49
+ # the Id of the action, any options and the duration (if applicable).
50
50
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
51
51
  def action_user(request)
52
52
  start.uri('/api/user/action')
@@ -56,7 +56,7 @@ module FusionAuth
56
56
  end
57
57
 
58
58
  #
59
- # Activates the FusionAuth Reactor using a license id and optionally a license text (for air-gapped deployments)
59
+ # Activates the FusionAuth Reactor using a license Id and optionally a license text (for air-gapped deployments)
60
60
  #
61
61
  # @param request [OpenStruct, Hash] An optional request that contains the license text to activate Reactor (useful for air-gap deployments of FusionAuth).
62
62
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -68,9 +68,9 @@ module FusionAuth
68
68
  end
69
69
 
70
70
  #
71
- # Adds a user to an existing family. The family id must be specified.
71
+ # Adds a user to an existing family. The family Id must be specified.
72
72
  #
73
- # @param family_id [string] The id of the family.
73
+ # @param family_id [string] The Id of the family.
74
74
  # @param request [OpenStruct, Hash] The request object that contains all the information used to determine which user to add to the family.
75
75
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
76
76
  def add_user_to_family(family_id, request)
@@ -105,7 +105,7 @@ module FusionAuth
105
105
  #
106
106
  # Cancels the user action.
107
107
  #
108
- # @param action_id [string] The action id of the action to cancel.
108
+ # @param action_id [string] The action Id of the action to cancel.
109
109
  # @param request [OpenStruct, Hash] The action request that contains the information about the cancellation.
110
110
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
111
111
  def cancel_action(action_id, request)
@@ -135,7 +135,7 @@ module FusionAuth
135
135
  end
136
136
 
137
137
  #
138
- # Changes a user's password using their identity (login id and password). Using a loginId instead of the changePasswordId
138
+ # Changes a user's password using their identity (loginId and password). Using a loginId instead of the changePasswordId
139
139
  # bypasses the email verification and allows a password to be changed directly without first calling the #forgotPassword
140
140
  # method.
141
141
  #
@@ -299,7 +299,7 @@ module FusionAuth
299
299
  end
300
300
 
301
301
  #
302
- # Creates a new role for an application. You must specify the id of the application you are creating the role for.
302
+ # Creates a new role for an application. You must specify the Id of the application you are creating the role for.
303
303
  # You can optionally specify an Id for the role inside the ApplicationRole object itself, if not provided one will be generated.
304
304
  #
305
305
  # @param application_id [string] The Id of the application to create the role on.
@@ -401,7 +401,7 @@ module FusionAuth
401
401
  end
402
402
 
403
403
  #
404
- # Creates a new permission for an entity type. You must specify the id of the entity type you are creating the permission for.
404
+ # Creates a new permission for an entity type. You must specify the Id of the entity type you are creating the permission for.
405
405
  # You can optionally specify an Id for the permission inside the EntityTypePermission object itself, if not provided one will be generated.
406
406
  #
407
407
  # @param entity_type_id [string] The Id of the entity type to create the permission on.
@@ -419,10 +419,10 @@ module FusionAuth
419
419
  end
420
420
 
421
421
  #
422
- # Creates a family with the user id in the request as the owner and sole member of the family. You can optionally specify an id for the
422
+ # Creates a family with the user Id in the request as the owner and sole member of the family. You can optionally specify an Id for the
423
423
  # family, if not provided one will be generated.
424
424
  #
425
- # @param family_id [string] (Optional) The id for the family. If not provided a secure random UUID will be generated.
425
+ # @param family_id [string] (Optional) The Id for the family. If not provided a secure random UUID will be generated.
426
426
  # @param request [OpenStruct, Hash] The request object that contains all the information used to create the family.
427
427
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
428
428
  def create_family(family_id, request)
@@ -557,6 +557,24 @@ module FusionAuth
557
557
  .go()
558
558
  end
559
559
 
560
+ #
561
+ # Creates a new custom OAuth scope for an application. You must specify the Id of the application you are creating the scope for.
562
+ # You can optionally specify an Id for the OAuth scope on the URL, if not provided one will be generated.
563
+ #
564
+ # @param application_id [string] The Id of the application to create the OAuth scope on.
565
+ # @param scope_id [string] (Optional) The Id of the OAuth scope. If not provided a secure random UUID will be generated.
566
+ # @param request [OpenStruct, Hash] The request object that contains all the information used to create the OAuth OAuth scope.
567
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
568
+ def create_o_auth_scope(application_id, scope_id, request)
569
+ start.uri('/api/application')
570
+ .url_segment(application_id)
571
+ .url_segment("scope")
572
+ .url_segment(scope_id)
573
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
574
+ .post()
575
+ .go()
576
+ end
577
+
560
578
  #
561
579
  # Creates a tenant. You can optionally specify an Id for the tenant, if not provided one will be generated.
562
580
  #
@@ -776,7 +794,7 @@ module FusionAuth
776
794
  # Hard deletes an application role. This is a dangerous operation and should not be used in most circumstances. This
777
795
  # permanently removes the given role from all users that had it.
778
796
  #
779
- # @param application_id [string] The Id of the application to deactivate.
797
+ # @param application_id [string] The Id of the application that the role belongs to.
780
798
  # @param role_id [string] The Id of the role to delete.
781
799
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
782
800
  def delete_application_role(application_id, role_id)
@@ -1001,6 +1019,22 @@ module FusionAuth
1001
1019
  .go()
1002
1020
  end
1003
1021
 
1022
+ #
1023
+ # Hard deletes a custom OAuth scope.
1024
+ # OAuth workflows that are still requesting the deleted OAuth scope may fail depending on the application's unknown scope policy.
1025
+ #
1026
+ # @param application_id [string] The Id of the application that the OAuth scope belongs to.
1027
+ # @param scope_id [string] The Id of the OAuth scope to delete.
1028
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1029
+ def delete_o_auth_scope(application_id, scope_id)
1030
+ start.uri('/api/application')
1031
+ .url_segment(application_id)
1032
+ .url_segment("scope")
1033
+ .url_segment(scope_id)
1034
+ .delete()
1035
+ .go()
1036
+ end
1037
+
1004
1038
  #
1005
1039
  # Deletes the user registration for the given user and application.
1006
1040
  #
@@ -1748,7 +1782,7 @@ module FusionAuth
1748
1782
  end
1749
1783
 
1750
1784
  #
1751
- # Updates, via PATCH, the application role with the given id for the application.
1785
+ # Updates, via PATCH, the application role with the given Id for the application.
1752
1786
  #
1753
1787
  # @param application_id [string] The Id of the application that the role belongs to.
1754
1788
  # @param role_id [string] The Id of the role to update.
@@ -1903,7 +1937,24 @@ module FusionAuth
1903
1937
  end
1904
1938
 
1905
1939
  #
1906
- # Updates, via PATCH, the registration for the user with the given id and the application defined in the request.
1940
+ # Updates, via PATCH, the custom OAuth scope with the given Id for the application.
1941
+ #
1942
+ # @param application_id [string] The Id of the application that the OAuth scope belongs to.
1943
+ # @param scope_id [string] The Id of the OAuth scope to update.
1944
+ # @param request [OpenStruct, Hash] The request that contains just the new OAuth scope information.
1945
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1946
+ def patch_o_auth_scope(application_id, scope_id, request)
1947
+ start.uri('/api/application')
1948
+ .url_segment(application_id)
1949
+ .url_segment("scope")
1950
+ .url_segment(scope_id)
1951
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
1952
+ .patch()
1953
+ .go()
1954
+ end
1955
+
1956
+ #
1957
+ # Updates, via PATCH, the registration for the user with the given Id and the application defined in the request.
1907
1958
  #
1908
1959
  # @param user_id [string] The Id of the user whose registration is going to be updated.
1909
1960
  # @param request [OpenStruct, Hash] The request that contains just the new registration information.
@@ -2103,7 +2154,7 @@ module FusionAuth
2103
2154
  # Registers a user for an application. If you provide the User and the UserRegistration object on this request, it
2104
2155
  # will create the user as well as register them for the application. This is called a Full Registration. However, if
2105
2156
  # you only provide the UserRegistration object, then the user must already exist and they will be registered for the
2106
- # application. The user id can also be provided and it will either be used to look up an existing user or it will be
2157
+ # application. The user Id can also be provided and it will either be used to look up an existing user or it will be
2107
2158
  # used for the newly created User.
2108
2159
  #
2109
2160
  # @param user_id [string] (Optional) The Id of the user being registered for the application and optionally created.
@@ -2136,8 +2187,8 @@ module FusionAuth
2136
2187
  #
2137
2188
  # Removes a user from the family with the given id.
2138
2189
  #
2139
- # @param family_id [string] The id of the family to remove the user from.
2140
- # @param user_id [string] The id of the user to remove from the family.
2190
+ # @param family_id [string] The Id of the family to remove the user from.
2191
+ # @param user_id [string] The Id of the user to remove from the family.
2141
2192
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
2142
2193
  def remove_user_from_family(family_id, user_id)
2143
2194
  start.uri('/api/user/family')
@@ -2253,7 +2304,7 @@ module FusionAuth
2253
2304
  end
2254
2305
 
2255
2306
  #
2256
- # Retrieves the application for the given id or all the applications if the id is null.
2307
+ # Retrieves the application for the given Id or all the applications if the Id is null.
2257
2308
  #
2258
2309
  # @param application_id [string] (Optional) The application id.
2259
2310
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -2549,7 +2600,7 @@ module FusionAuth
2549
2600
  end
2550
2601
 
2551
2602
  #
2552
- # Retrieves the identity provider for the given id or all the identity providers if the id is null.
2603
+ # Retrieves the identity provider for the given Id or all the identity providers if the Id is null.
2553
2604
  #
2554
2605
  # @param identity_provider_id [string] The identity provider Id.
2555
2606
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -2820,6 +2871,21 @@ module FusionAuth
2820
2871
  .go()
2821
2872
  end
2822
2873
 
2874
+ #
2875
+ # Retrieves a custom OAuth scope.
2876
+ #
2877
+ # @param application_id [string] The Id of the application that the OAuth scope belongs to.
2878
+ # @param scope_id [string] The Id of the OAuth scope to retrieve.
2879
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
2880
+ def retrieve_o_auth_scope(application_id, scope_id)
2881
+ start.uri('/api/application')
2882
+ .url_segment(application_id)
2883
+ .url_segment("scope")
2884
+ .url_segment(scope_id)
2885
+ .get()
2886
+ .go()
2887
+ end
2888
+
2823
2889
  #
2824
2890
  # Retrieves the Oauth2 configuration for the application for the given Application Id.
2825
2891
  #
@@ -2955,7 +3021,7 @@ module FusionAuth
2955
3021
  end
2956
3022
 
2957
3023
  #
2958
- # Retrieves the user registration for the user with the given id and the given application id.
3024
+ # Retrieves the user registration for the user with the given Id and the given application id.
2959
3025
  #
2960
3026
  # @param user_id [string] The Id of the user.
2961
3027
  # @param application_id [string] The Id of the application.
@@ -3479,8 +3545,8 @@ module FusionAuth
3479
3545
  # - revokeRefreshTokensByUserIdForApplication
3480
3546
  #
3481
3547
  # @param token [string] (Optional) The refresh token to delete.
3482
- # @param user_id [string] (Optional) The user id whose tokens to delete.
3483
- # @param application_id [string] (Optional) The application id of the tokens to delete.
3548
+ # @param user_id [string] (Optional) The user Id whose tokens to delete.
3549
+ # @param application_id [string] (Optional) The application Id of the tokens to delete.
3484
3550
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
3485
3551
  def revoke_refresh_token(token, user_id, application_id)
3486
3552
  start.uri('/api/jwt/refresh')
@@ -3639,7 +3705,7 @@ module FusionAuth
3639
3705
  end
3640
3706
 
3641
3707
  #
3642
- # Retrieves the entities for the given ids. If any id is invalid, it is ignored.
3708
+ # Retrieves the entities for the given ids. If any Id is invalid, it is ignored.
3643
3709
  #
3644
3710
  # @param ids [Array] The entity ids to search for.
3645
3711
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -3807,7 +3873,7 @@ module FusionAuth
3807
3873
  end
3808
3874
 
3809
3875
  #
3810
- # Retrieves the users for the given ids. If any id is invalid, it is ignored.
3876
+ # Retrieves the users for the given ids. If any Id is invalid, it is ignored.
3811
3877
  #
3812
3878
  # @param ids [Array] The user ids to search for.
3813
3879
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -3820,7 +3886,7 @@ module FusionAuth
3820
3886
  end
3821
3887
 
3822
3888
  #
3823
- # Retrieves the users for the given ids. If any id is invalid, it is ignored.
3889
+ # Retrieves the users for the given ids. If any Id is invalid, it is ignored.
3824
3890
  #
3825
3891
  # @param ids [Array] The user ids to search for.
3826
3892
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -3874,7 +3940,7 @@ module FusionAuth
3874
3940
  # Send an email using an email template id. You can optionally provide <code>requestData</code> to access key value
3875
3941
  # pairs in the email template.
3876
3942
  #
3877
- # @param email_template_id [string] The id for the template.
3943
+ # @param email_template_id [string] The Id for the template.
3878
3944
  # @param request [OpenStruct, Hash] The send email request that contains all the information used to send the email.
3879
3945
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
3880
3946
  def send_email(email_template_id, request)
@@ -4069,7 +4135,7 @@ module FusionAuth
4069
4135
  end
4070
4136
 
4071
4137
  #
4072
- # Updates the application role with the given id for the application.
4138
+ # Updates the application role with the given Id for the application.
4073
4139
  #
4074
4140
  # @param application_id [string] The Id of the application that the role belongs to.
4075
4141
  # @param role_id [string] The Id of the role to update.
@@ -4156,7 +4222,7 @@ module FusionAuth
4156
4222
  end
4157
4223
 
4158
4224
  #
4159
- # Updates the permission with the given id for the entity type.
4225
+ # Updates the permission with the given Id for the entity type.
4160
4226
  #
4161
4227
  # @param entity_type_id [string] The Id of the entityType that the permission belongs to.
4162
4228
  # @param permission_id [string] The Id of the permission to update.
@@ -4323,7 +4389,24 @@ module FusionAuth
4323
4389
  end
4324
4390
 
4325
4391
  #
4326
- # Updates the registration for the user with the given id and the application defined in the request.
4392
+ # Updates the OAuth scope with the given Id for the application.
4393
+ #
4394
+ # @param application_id [string] The Id of the application that the OAuth scope belongs to.
4395
+ # @param scope_id [string] The Id of the OAuth scope to update.
4396
+ # @param request [OpenStruct, Hash] The request that contains all the new OAuth scope information.
4397
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
4398
+ def update_o_auth_scope(application_id, scope_id, request)
4399
+ start.uri('/api/application')
4400
+ .url_segment(application_id)
4401
+ .url_segment("scope")
4402
+ .url_segment(scope_id)
4403
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
4404
+ .put()
4405
+ .go()
4406
+ end
4407
+
4408
+ #
4409
+ # Updates the registration for the user with the given Id and the application defined in the request.
4327
4410
  #
4328
4411
  # @param user_id [string] The Id of the user whose registration is going to be updated.
4329
4412
  # @param request [OpenStruct, Hash] The request that contains all the new registration information.
@@ -4514,7 +4597,7 @@ module FusionAuth
4514
4597
  #
4515
4598
  # Confirms a email verification. The Id given is usually from an email sent to the user.
4516
4599
  #
4517
- # @param verification_id [string] The email verification id sent to the user.
4600
+ # @param verification_id [string] The email verification Id sent to the user.
4518
4601
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
4519
4602
  # @deprecated This method has been renamed to verify_email_address and changed to take a JSON request body, use that method instead.
4520
4603
  def verify_email(verification_id)
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2019-2023, FusionAuth, All Rights Reserved
1
+ # Copyright (c) 2019-2024, FusionAuth, All Rights Reserved
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fusionauth_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.48.0
4
+ version: 1.50.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Pontarelli
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-10-27 00:00:00.000000000 Z
12
+ date: 2024-04-25 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: This library contains the Ruby client library that helps you connect
15
15
  your application to FusionAuth.
@@ -20,18 +20,68 @@ executables: []
20
20
  extensions: []
21
21
  extra_rdoc_files: []
22
22
  files:
23
+ - ".github/dependabot.yml"
24
+ - ".github/fusionauth/.env"
25
+ - ".github/fusionauth/docker-compose.yml"
26
+ - ".github/fusionauth/kickstart.json"
27
+ - ".github/workflows/docs.yml"
28
+ - ".github/workflows/test.yml"
23
29
  - ".gitignore"
24
30
  - ".ruby-version"
25
31
  - Gemfile
26
32
  - Gemfile.lock
27
33
  - LICENSE.txt
28
- - README.adoc
34
+ - README.md
29
35
  - Rakefile
30
36
  - build.savant
37
+ - doc/FusionAuth.html
31
38
  - doc/FusionAuth.md
39
+ - doc/FusionAuth/FusionAuthClient.html
32
40
  - doc/FusionAuth/FusionAuthClient.md
33
41
  - doc/created.rid
34
- - doc/index.db
42
+ - doc/css/fonts.css
43
+ - doc/css/rdoc.css
44
+ - doc/fonts/Lato-Light.ttf
45
+ - doc/fonts/Lato-LightItalic.ttf
46
+ - doc/fonts/Lato-Regular.ttf
47
+ - doc/fonts/Lato-RegularItalic.ttf
48
+ - doc/fonts/SourceCodePro-Bold.ttf
49
+ - doc/fonts/SourceCodePro-Regular.ttf
50
+ - doc/images/add.png
51
+ - doc/images/arrow_up.png
52
+ - doc/images/brick.png
53
+ - doc/images/brick_link.png
54
+ - doc/images/bug.png
55
+ - doc/images/bullet_black.png
56
+ - doc/images/bullet_toggle_minus.png
57
+ - doc/images/bullet_toggle_plus.png
58
+ - doc/images/date.png
59
+ - doc/images/delete.png
60
+ - doc/images/find.png
61
+ - doc/images/loadingAnimation.gif
62
+ - doc/images/macFFBgHack.png
63
+ - doc/images/package.png
64
+ - doc/images/page_green.png
65
+ - doc/images/page_white_text.png
66
+ - doc/images/page_white_width.png
67
+ - doc/images/plugin.png
68
+ - doc/images/ruby.png
69
+ - doc/images/tag_blue.png
70
+ - doc/images/tag_green.png
71
+ - doc/images/transparent.png
72
+ - doc/images/wrench.png
73
+ - doc/images/wrench_orange.png
74
+ - doc/images/zoom.png
75
+ - doc/index.html
76
+ - doc/js/darkfish.js
77
+ - doc/js/navigation.js
78
+ - doc/js/navigation.js.gz
79
+ - doc/js/search.js
80
+ - doc/js/search_index.js
81
+ - doc/js/search_index.js.gz
82
+ - doc/js/searcher.js
83
+ - doc/js/searcher.js.gz
84
+ - doc/table_of_contents.html
35
85
  - examples/create_user.rb
36
86
  - examples/login.rb
37
87
  - fusionauth-ruby-client.iml
data/README.adoc DELETED
@@ -1,106 +0,0 @@
1
- == FusionAuth::FusionAuthClient
2
-
3
- This gem is the Ruby client library that helps connect Ruby applications to the FusionAuth (https://fusionauth.io) Identity and User Management platform.
4
-
5
- == Getting Started
6
-
7
- === Installation
8
-
9
- Add this line to your application’s Gemfile:
10
-
11
- [source,ruby]
12
- ----
13
- gem 'fusionauth_client'
14
- ----
15
-
16
- And then execute:
17
-
18
- [source,shell]
19
- ----
20
- bundle
21
- ----
22
-
23
- Or install it yourself as:
24
-
25
- [source,shell]
26
- ----
27
- gem install fusionauth_client
28
- ----
29
-
30
- === Usage
31
-
32
- Once the gem is installed, you can call FusionAuth APIs.
33
-
34
- [source,ruby]
35
- ----
36
- require 'fusionauth/fusionauth_client'
37
- require 'securerandom'
38
- require 'pp'
39
-
40
- # Construct the FusionAuth Client
41
- client = FusionAuth::FusionAuthClient.new(
42
- 'REPLACE_ME',
43
- 'http://localhost:9011'
44
- )
45
-
46
- application_id = '85a03867-dccf-4882-adde-1a79aeec50df'
47
-
48
- # Create a user + registration
49
- id = SecureRandom.uuid
50
- response = client.register(id, {
51
- user: {
52
- firstName: 'Ruby',
53
- lastName: 'User',
54
- email: 'ruby_user@example.com',
55
- password: 'password'
56
- },
57
- registration: {
58
- applicationId: application_id,
59
- data: {
60
- foo: 'bar'
61
- },
62
- preferredLanguages: %w(en fr),
63
- roles: %w(dev)
64
- }
65
- })
66
-
67
- #pp response
68
- if response.success_response
69
- pp response.success_response
70
- else
71
- if response.exception
72
- # if we can't connect
73
- print response.exception
74
- end
75
- print "status: #{response.status}"
76
- print response.error_response
77
- exit
78
- end
79
- ----
80
-
81
- == Documentation
82
-
83
- Documentation can be found at https://github.com/FusionAuth/fusionauth-ruby-client/tree/master/doc[doc].
84
-
85
- === Questions and support
86
-
87
- If you have a question or support issue regarding this client library, we’d love to hear from you.
88
-
89
- If you have a paid edition with support included, please https://account.fusionauth.io/account/support/[open a ticket in your account portal]. Learn more about https://fusionauth.io/pricing[paid editions here].
90
-
91
- Otherwise, please https://fusionauth.io/community/forum/[post your question in the community forum].
92
-
93
- === Contributing
94
-
95
- Bug reports and pull requests are welcome on GitHub at https://github.com/FusionAuth/fusionauth-ruby-client.
96
-
97
- All issues filed in this repository must abide by the [FusionAuth community guidelines](https://fusionauth.io/community/forum/topic/1000/code-of-conduct).
98
-
99
- === License
100
-
101
- This code is available as open source under the terms of the https://opensource.org/licenses/Apache-2.0[Apache v2.0 License].
102
-
103
- //tag::forDocSite[]
104
-
105
- //end::forDocSite[]
106
-
data/doc/index.db DELETED
Binary file