fusionauth_client 1.26.0 → 1.27.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a950e65ea4b1b98b030175aa96aa10e60eaa283adffb60f940e7faaf03ea3db8
4
- data.tar.gz: fb0218fa311d0c815042e7d062319827c5361a84831d42abd3be103886335a9e
3
+ metadata.gz: fee219ef1738d6ccb97d8bb5cdba190a5658dcc9263dcb460c811d97c02da025
4
+ data.tar.gz: f9858eb19f04b69197b1dcf3f2c35a6e7429e331bfd764a95b55101f6b101cc4
5
5
  SHA512:
6
- metadata.gz: 76a87d490167744f343858a59f416fcf97ecf351421d4b89463a8f523fe51bdd44c46724bf3824a5570ebf2e0db43287d8a256f4d5e581563716596560f9a8d8
7
- data.tar.gz: cbe4905cd5fa7266e968a3fd506bcd0a7db27d1309ec03f11fe9c35a59f0e535ba20a400a7fbef1a089c4b05a8a8e724e1844daaf737db2263cfa03fd50d6b7e
6
+ metadata.gz: 71dae847ef49057df21dfc2966596f22b0fe65e5ccd6b37af5cb883b26aa21bc6be6ca0092e25e3e74126c0c74a553d566937f513adf2381d2c438ed1e8f6062
7
+ data.tar.gz: 0c9ab46e8f349387417374abfb4ad2d4ec085d399f25fa489d02e83c2d69bffa09fd0a5eaccb3828d345545856f443c14b42d6e910a94aa8438a9145241c2973
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fusionauth_client (1.26.0)
4
+ fusionauth_client (1.27.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/build.savant CHANGED
@@ -16,7 +16,7 @@
16
16
  savantVersion = "1.0.0"
17
17
 
18
18
  pubVersion = ""
19
- project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.26.0", licenses: ["ApacheV2_0"]) {
19
+ project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.27.0", licenses: ["ApacheV2_0"]) {
20
20
  workflow {
21
21
  standard()
22
22
  }
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'fusionauth_client'
7
- spec.version = '1.26.0'
7
+ spec.version = '1.27.0'
8
8
  spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
9
9
  spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
10
10
 
@@ -58,12 +58,10 @@ module FusionAuth
58
58
  #
59
59
  # Activates the FusionAuth Reactor using a license id and optionally a license text (for air-gapped deployments)
60
60
  #
61
- # @param license_id [string] The license id
62
61
  # @param request [OpenStruct, Hash] An optional request that contains the license text to activate Reactor (useful for air-gap deployments of FusionAuth).
63
62
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
64
- def activate_reactor(license_id, request)
63
+ def activate_reactor(request)
65
64
  start.uri('/api/reactor')
66
- .url_segment(license_id)
67
65
  .body_handler(FusionAuth::JSONBodyHandler.new(request))
68
66
  .post()
69
67
  .go()
@@ -2930,6 +2928,16 @@ module FusionAuth
2930
2928
  .go()
2931
2929
  end
2932
2930
 
2931
+ #
2932
+ # Retrieves the FusionAuth version string.
2933
+ #
2934
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
2935
+ def retrieve_version()
2936
+ start.uri('/api/system/version')
2937
+ .get()
2938
+ .go()
2939
+ end
2940
+
2933
2941
  #
2934
2942
  # Retrieves the webhook for the given Id. If you pass in null for the id, this will return all the webhooks.
2935
2943
  #
@@ -3777,6 +3785,7 @@ module FusionAuth
3777
3785
  #
3778
3786
  # @param verification_id [string] The email verification id sent to the user.
3779
3787
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
3788
+ # @deprecated This method has been renamed to verify_email_address and changed to take a JSON request body, use that method instead.
3780
3789
  def verify_email(verification_id)
3781
3790
  startAnonymous.uri('/api/user/verify-email')
3782
3791
  .url_segment(verification_id)
@@ -3784,11 +3793,29 @@ module FusionAuth
3784
3793
  .go()
3785
3794
  end
3786
3795
 
3796
+ #
3797
+ # Confirms a user's email address.
3798
+ #
3799
+ # The request body will contain the verificationId. You may also be required to send a one-time use code based upon your configuration. When
3800
+ # the tenant is configured to gate a user until their email address is verified, this procedures requires two values instead of one.
3801
+ # The verificationId is a high entropy value and the one-time use code is a low entropy value that is easily entered in a user interactive form. The
3802
+ # two values together are able to confirm a user's email address and mark the user's email address as verified.
3803
+ #
3804
+ # @param request [OpenStruct, Hash] The request that contains the verificationId and optional one-time use code paired with the verificationId.
3805
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
3806
+ def verify_email_address(request)
3807
+ startAnonymous.uri('/api/user/verify-email')
3808
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
3809
+ .post()
3810
+ .go()
3811
+ end
3812
+
3787
3813
  #
3788
3814
  # Confirms an application registration. The Id given is usually from an email sent to the user.
3789
3815
  #
3790
3816
  # @param verification_id [string] The registration verification Id sent to the user.
3791
3817
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
3818
+ # @deprecated This method has been renamed to verify_user_registration and changed to take a JSON request body, use that method instead.
3792
3819
  def verify_registration(verification_id)
3793
3820
  startAnonymous.uri('/api/user/verify-registration')
3794
3821
  .url_segment(verification_id)
@@ -3796,6 +3823,23 @@ module FusionAuth
3796
3823
  .go()
3797
3824
  end
3798
3825
 
3826
+ #
3827
+ # Confirms a user's registration.
3828
+ #
3829
+ # The request body will contain the verificationId. You may also be required to send a one-time use code based upon your configuration. When
3830
+ # the application is configured to gate a user until their registration is verified, this procedures requires two values instead of one.
3831
+ # The verificationId is a high entropy value and the one-time use code is a low entropy value that is easily entered in a user interactive form. The
3832
+ # two values together are able to confirm a user's registration and mark the user's registration as verified.
3833
+ #
3834
+ # @param request [OpenStruct, Hash] The request that contains the verificationId and optional one-time use code paired with the verificationId.
3835
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
3836
+ def verify_user_registration(request)
3837
+ startAnonymous.uri('/api/user/verify-registration')
3838
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
3839
+ .post()
3840
+ .go()
3841
+ end
3842
+
3799
3843
  #
3800
3844
  # Starts the HTTP call
3801
3845
  #
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.26.0
4
+ version: 1.27.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: 2021-04-20 00:00:00.000000000 Z
12
+ date: 2021-05-05 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.