fusionauth_client 1.15.4 → 1.20.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: 8cbcb2adfc3b09a934e786c6f513b5d99505d900539972ea3687ca9b8fb453a9
4
- data.tar.gz: 00eb3457df983b0dcd35e89484c7dbb92b8a5a604a3235f6f4e2a7d9e2b266ad
3
+ metadata.gz: e815e4667224cb1fb5ae6df284a1b3a578143f84fb9ce6bc170eefaf1bc9b817
4
+ data.tar.gz: c795401c250613344f61cb50ced363afe2c7f23e92088b812787123dbe9a8c7a
5
5
  SHA512:
6
- metadata.gz: 7ba9e4b2449499f77087c09c1c3f21e7bb13ee3d9e4153abb7f52824354d62c03f1dda43e56d321c2564efb123cfcf4ca04a91447daed5aa6e315e009afe2ad5
7
- data.tar.gz: d9b35f7594bbcbbc18a5bbeef396c8bfe849a50ef213c61ab3646ac131798c43cd526457ff6a23430c8c2bb7121f3ba834f39a18ecc0eb0a92f609dc447cbb8a
6
+ metadata.gz: a7d776826e013d30fcda08077b548dbd1af76243011d43c5f29e371eac9e5e25c2416ac79c3cab41560671d9c2df1f42f3ec7e5facdd6695dba1693519bde83c
7
+ data.tar.gz: a6e727d09bb8fdfd4f176237ab3de1f590cec4259fb9d2eb099ae3781057063ccc47426c42fd65bc21af4d97d32672bd3c48b571c8cdccca8319ca89959763a3
@@ -1 +1 @@
1
- 2.3.1
1
+ 2.5.1
data/Gemfile CHANGED
@@ -1,7 +1,21 @@
1
+ # Copyright (c) 2019, FusionAuth, All Rights Reserved
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing,
10
+ # software distributed under the License is distributed on an
11
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
12
+ # either express or implied. See the License for the specific
13
+ # language governing permissions and limitations under the License.
14
+
1
15
  source 'https://rubygems.org'
2
- ruby '2.3.1'
16
+ ruby '2.5.1'
3
17
 
4
- gem "rake", "10.4.2"
18
+ gem "rake", "12.3.3"
5
19
  gem "minitest", "5.8.3"
6
20
 
7
21
  # Specify your gem's dependencies in fusionauth_client.gemspec
data/README.md CHANGED
@@ -33,7 +33,7 @@ client = FusionAuth::FusionAuthClient.new(
33
33
 
34
34
  # Create a user + registration
35
35
  id = SecureRandom.uuid
36
- client.register!(id, {
36
+ client.register(id, {
37
37
  :user => {
38
38
  :firstName => 'Ruby',
39
39
  :lastName => 'Client',
@@ -51,12 +51,12 @@ client.register!(id, {
51
51
  })
52
52
 
53
53
  # Authenticate the user
54
- response = client.login!({
54
+ response = client.login({
55
55
  :loginId => 'ruby.client.test@fusionauth.io',
56
56
  :password => 'password',
57
57
  :applicationId => application_id
58
58
  })
59
- user = response.user
59
+ user = response.success.response.user
60
60
  ```
61
61
 
62
62
  ## Contributing
@@ -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.15.4", licenses: ["ApacheV2_0"]) {
19
+ project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.20.0", licenses: ["ApacheV2_0"]) {
20
20
  workflow {
21
21
  standard()
22
22
  }
@@ -6,10 +6,10 @@
6
6
  <sourceFolder url="file://$MODULE_DIR$/lib" isTestSource="false" />
7
7
  <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
8
8
  </content>
9
- <orderEntry type="jdk" jdkName="rbenv: 2.3.1" jdkType="RUBY_SDK" />
9
+ <orderEntry type="jdk" jdkName="rbenv: 2.5.1" jdkType="RUBY_SDK" />
10
10
  <orderEntry type="sourceFolder" forTests="false" />
11
- <orderEntry type="library" scope="PROVIDED" name="bundler (v2.0.2, rbenv: 2.3.1) [gem]" level="application" />
12
- <orderEntry type="library" scope="PROVIDED" name="minitest (v5.8.3, rbenv: 2.3.1) [gem]" level="application" />
13
- <orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, rbenv: 2.3.1) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v2.1.4, rbenv: 2.5.1) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.8.3, rbenv: 2.5.1) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="rake (v12.3.3, rbenv: 2.5.1) [gem]" level="application" />
14
14
  </component>
15
15
  </module>
@@ -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.15.4'
7
+ spec.version = '1.20.0'
8
8
  spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
9
9
  spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
10
10
 
@@ -170,6 +170,20 @@ module FusionAuth
170
170
  .go()
171
171
  end
172
172
 
173
+ #
174
+ # Creates a connector. You can optionally specify an Id for the connector, if not provided one will be generated.
175
+ #
176
+ # @param connector_id [string] (Optional) The Id for the connector. If not provided a secure random UUID will be generated.
177
+ # @param request [OpenStruct, Hash] The request object that contains all of the information used to create the connector.
178
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
179
+ def create_connector(connector_id, request)
180
+ start.uri('/api/connector')
181
+ .url_segment(connector_id)
182
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
183
+ .post()
184
+ .go()
185
+ end
186
+
173
187
  #
174
188
  # Creates a user consent type. You can optionally specify an Id for the consent type, if not provided one will be generated.
175
189
  #
@@ -213,6 +227,34 @@ module FusionAuth
213
227
  .go()
214
228
  end
215
229
 
230
+ #
231
+ # Creates a form. You can optionally specify an Id for the form, if not provided one will be generated.
232
+ #
233
+ # @param form_id [string] (Optional) The Id for the form. If not provided a secure random UUID will be generated.
234
+ # @param request [OpenStruct, Hash] The request object that contains all of the information used to create the form.
235
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
236
+ def create_form(form_id, request)
237
+ start.uri('/api/form')
238
+ .url_segment(form_id)
239
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
240
+ .post()
241
+ .go()
242
+ end
243
+
244
+ #
245
+ # Creates a form field. You can optionally specify an Id for the form, if not provided one will be generated.
246
+ #
247
+ # @param field_id [string] (Optional) The Id for the form field. If not provided a secure random UUID will be generated.
248
+ # @param request [OpenStruct, Hash] The request object that contains all of the information used to create the form field.
249
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
250
+ def create_form_field(field_id, request)
251
+ start.uri('/api/form/field')
252
+ .url_segment(field_id)
253
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
254
+ .post()
255
+ .go()
256
+ end
257
+
216
258
  #
217
259
  # Creates a group. You can optionally specify an Id for the group, if not provided one will be generated.
218
260
  #
@@ -464,6 +506,18 @@ module FusionAuth
464
506
  .go()
465
507
  end
466
508
 
509
+ #
510
+ # Deletes the connector for the given Id.
511
+ #
512
+ # @param connector_id [string] The Id of the connector to delete.
513
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
514
+ def delete_connector(connector_id)
515
+ start.uri('/api/connector')
516
+ .url_segment(connector_id)
517
+ .delete()
518
+ .go()
519
+ end
520
+
467
521
  #
468
522
  # Deletes the consent for the given Id.
469
523
  #
@@ -488,6 +542,30 @@ module FusionAuth
488
542
  .go()
489
543
  end
490
544
 
545
+ #
546
+ # Deletes the form for the given Id.
547
+ #
548
+ # @param form_id [string] The Id of the form to delete.
549
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
550
+ def delete_form(form_id)
551
+ start.uri('/api/form')
552
+ .url_segment(form_id)
553
+ .delete()
554
+ .go()
555
+ end
556
+
557
+ #
558
+ # Deletes the form field for the given Id.
559
+ #
560
+ # @param field_id [string] The Id of the form field to delete.
561
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
562
+ def delete_form_field(field_id)
563
+ start.uri('/api/form/field')
564
+ .url_segment(field_id)
565
+ .delete()
566
+ .go()
567
+ end
568
+
491
569
  #
492
570
  # Deletes the group for the given Id.
493
571
  #
@@ -527,11 +605,11 @@ module FusionAuth
527
605
  #
528
606
  # Deletes the key for the given Id.
529
607
  #
530
- # @param key_od [string] The Id of the key to delete.
608
+ # @param key_id [string] The Id of the key to delete.
531
609
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
532
- def delete_key(key_od)
610
+ def delete_key(key_id)
533
611
  start.uri('/api/key')
534
- .url_segment(key_od)
612
+ .url_segment(key_id)
535
613
  .delete()
536
614
  .go()
537
615
  end
@@ -704,8 +782,8 @@ module FusionAuth
704
782
  # If you will be using the Authorization Code grant, you will make a request to the Token endpoint to exchange the authorization code returned from the Authorize endpoint for an access token.
705
783
  #
706
784
  # @param code [string] The authorization code returned on the /oauth2/authorize response.
707
- # @param client_id [string] (Optional) The unique client identifier. The client Id is the Id of the FusionAuth Application in which you you are attempting to authenticate. This parameter is optional when the Authorization header is provided.
708
- # @param client_secret [string] (Optional) The client secret. This value may optionally be provided in the request body instead of the Authorization header.
785
+ # @param client_id [string] The unique client identifier. The client Id is the Id of the FusionAuth Application in which you you are attempting to authenticate.
786
+ # @param client_secret [string] (Optional) The client secret. This value will be required if client authentication is enabled.
709
787
  # @param redirect_uri [string] The URI to redirect to upon a successful request.
710
788
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
711
789
  def exchange_o_auth_code_for_access_token(code, client_id, client_secret, redirect_uri)
@@ -862,8 +940,8 @@ module FusionAuth
862
940
  # @param encoded_jwt [string] The encoded JWT (access token).
863
941
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
864
942
  def generate_two_factor_secret_using_jwt(encoded_jwt)
865
- start.uri('/api/two-factor/secret')
866
- .authorization('JWT ' + encoded_jwt)
943
+ startAnonymous.uri('/api/two-factor/secret')
944
+ .authorization('Bearer ' + encoded_jwt)
867
945
  .get()
868
946
  .go()
869
947
  end
@@ -897,9 +975,33 @@ module FusionAuth
897
975
  end
898
976
 
899
977
  #
900
- # Bulk imports multiple users. This does some validation, but then tries to run batch inserts of users. This reduces
901
- # latency when inserting lots of users. Therefore, the error response might contain some information about failures,
902
- # but it will likely be pretty generic.
978
+ # Bulk imports refresh tokens. This request performs minimal validation and runs batch inserts of refresh tokens with the
979
+ # expectation that each token represents a user that already exists and is registered for the corresponding FusionAuth
980
+ # Application. This is done to increases the insert performance.
981
+ #
982
+ # Therefore, if you encounter an error due to a database key violation, the response will likely offer a generic
983
+ # explanation. If you encounter an error, you may optionally enable additional validation to receive a JSON response
984
+ # body with specific validation errors. This will slow the request down but will allow you to identify the cause of
985
+ # the failure. See the validateDbConstraints request parameter.
986
+ #
987
+ # @param request [OpenStruct, Hash] The request that contains all of the information about all of the refresh tokens to import.
988
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
989
+ def import_refresh_tokens(request)
990
+ start.uri('/api/user/refresh-token/import')
991
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
992
+ .post()
993
+ .go()
994
+ end
995
+
996
+ #
997
+ # Bulk imports users. This request performs minimal validation and runs batch inserts of users with the expectation
998
+ # that each user does not yet exist and each registration corresponds to an existing FusionAuth Application. This is done to
999
+ # increases the insert performance.
1000
+ #
1001
+ # Therefore, if you encounter an error due to a database key violation, the response will likely offer
1002
+ # a generic explanation. If you encounter an error, you may optionally enable additional validation to receive a JSON response
1003
+ # body with specific validation errors. This will slow the request down but will allow you to identify the cause of the failure. See
1004
+ # the validateDbConstraints request parameter.
903
1005
  #
904
1006
  # @param request [OpenStruct, Hash] The request that contains all of the information about all of the users to import.
905
1007
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -910,6 +1012,23 @@ module FusionAuth
910
1012
  .go()
911
1013
  end
912
1014
 
1015
+ #
1016
+ # Inspect an access token issued by FusionAuth.
1017
+ #
1018
+ # @param client_id [string] The unique client identifier. The client Id is the Id of the FusionAuth Application for which this token was generated.
1019
+ # @param token [string] The access token returned by this OAuth provider as the result of a successful authentication.
1020
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1021
+ def introspect_access_token(client_id, token)
1022
+ body = {
1023
+ "client_id" => client_id,
1024
+ "token" => token
1025
+ }
1026
+ startAnonymous.uri('/oauth2/introspect')
1027
+ .body_handler(FusionAuth::FormDataBodyHandler.new(body))
1028
+ .post()
1029
+ .go()
1030
+ end
1031
+
913
1032
  #
914
1033
  # Issue a new access token (JWT) for the requested Application after ensuring the provided JWT is valid. A valid
915
1034
  # access token is properly signed and not expired.
@@ -920,12 +1039,12 @@ module FusionAuth
920
1039
  # @param application_id [string] The Application Id for which you are requesting a new access token be issued.
921
1040
  # @param encoded_jwt [string] The encoded JWT (access token).
922
1041
  # @param refresh_token [string] (Optional) An existing refresh token used to request a refresh token in addition to a JWT in the response.
923
- # <p>The target application represented by the applicationid request parameter must have refresh
1042
+ # <p>The target application represented by the applicationId request parameter must have refresh
924
1043
  # tokens enabled in order to receive a refresh token in the response.</p>
925
1044
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
926
1045
  def issue_jwt(application_id, encoded_jwt, refresh_token)
927
- start.uri('/api/jwt/issue')
928
- .authorization('JWT ' + encoded_jwt)
1046
+ startAnonymous.uri('/api/jwt/issue')
1047
+ .authorization('Bearer ' + encoded_jwt)
929
1048
  .url_parameter('applicationId', application_id)
930
1049
  .url_parameter('refreshToken', refresh_token)
931
1050
  .get()
@@ -1055,6 +1174,20 @@ module FusionAuth
1055
1174
  .go()
1056
1175
  end
1057
1176
 
1177
+ #
1178
+ # Updates, via PATCH, the connector with the given Id.
1179
+ #
1180
+ # @param connector_id [string] The Id of the connector to update.
1181
+ # @param request [OpenStruct, Hash] The request that contains just the new connector information.
1182
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1183
+ def patch_connector(connector_id, request)
1184
+ start.uri('/api/connector')
1185
+ .url_segment(connector_id)
1186
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
1187
+ .patch()
1188
+ .go()
1189
+ end
1190
+
1058
1191
  #
1059
1192
  # Updates, via PATCH, the consent with the given Id.
1060
1193
  #
@@ -1355,6 +1488,21 @@ module FusionAuth
1355
1488
  .go()
1356
1489
  end
1357
1490
 
1491
+ #
1492
+ # Re-sends the verification email to the user. If the Application has configured a specific email template this will be used
1493
+ # instead of the tenant configuration.
1494
+ #
1495
+ # @param application_id [string] The unique Application Id to used to resolve an application specific email template.
1496
+ # @param email [string] The email address of the user that needs a new verification email.
1497
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1498
+ def resend_email_verification_with_application_template(application_id, email)
1499
+ start.uri('/api/user/verify-email')
1500
+ .url_parameter('applicationId', application_id)
1501
+ .url_parameter('email', email)
1502
+ .put()
1503
+ .go()
1504
+ end
1505
+
1358
1506
  #
1359
1507
  # Re-sends the application registration verification email to the user.
1360
1508
  #
@@ -1455,6 +1603,28 @@ module FusionAuth
1455
1603
  .go()
1456
1604
  end
1457
1605
 
1606
+ #
1607
+ # Retrieves the connector with the given Id.
1608
+ #
1609
+ # @param connector_id [string] The Id of the connector.
1610
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1611
+ def retrieve_connector(connector_id)
1612
+ start.uri('/api/connector')
1613
+ .url_segment(connector_id)
1614
+ .get()
1615
+ .go()
1616
+ end
1617
+
1618
+ #
1619
+ # Retrieves all of the connectors.
1620
+ #
1621
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1622
+ def retrieve_connectors()
1623
+ start.uri('/api/connector')
1624
+ .get()
1625
+ .go()
1626
+ end
1627
+
1458
1628
  #
1459
1629
  # Retrieves the Consent for the given Id.
1460
1630
  #
@@ -1566,6 +1736,50 @@ module FusionAuth
1566
1736
  .go()
1567
1737
  end
1568
1738
 
1739
+ #
1740
+ # Retrieves the form with the given Id.
1741
+ #
1742
+ # @param form_id [string] The Id of the form.
1743
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1744
+ def retrieve_form(form_id)
1745
+ start.uri('/api/form')
1746
+ .url_segment(form_id)
1747
+ .get()
1748
+ .go()
1749
+ end
1750
+
1751
+ #
1752
+ # Retrieves the form field with the given Id.
1753
+ #
1754
+ # @param field_id [string] The Id of the form field.
1755
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1756
+ def retrieve_form_field(field_id)
1757
+ start.uri('/api/form/field')
1758
+ .url_segment(field_id)
1759
+ .get()
1760
+ .go()
1761
+ end
1762
+
1763
+ #
1764
+ # Retrieves all of the forms fields
1765
+ #
1766
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1767
+ def retrieve_form_fields()
1768
+ start.uri('/api/form/field')
1769
+ .get()
1770
+ .go()
1771
+ end
1772
+
1773
+ #
1774
+ # Retrieves all of the forms.
1775
+ #
1776
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
1777
+ def retrieve_forms()
1778
+ start.uri('/api/form')
1779
+ .get()
1780
+ .go()
1781
+ end
1782
+
1569
1783
  #
1570
1784
  # Retrieves the group for the given Id.
1571
1785
  #
@@ -2130,6 +2344,18 @@ module FusionAuth
2130
2344
  .go()
2131
2345
  end
2132
2346
 
2347
+ #
2348
+ # Call the UserInfo endpoint to retrieve User Claims from the access token issued by FusionAuth.
2349
+ #
2350
+ # @param encoded_jwt [string] The encoded JWT (access token).
2351
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
2352
+ def retrieve_user_info_from_access_token(encoded_jwt)
2353
+ startAnonymous.uri('/oauth2/userinfo')
2354
+ .authorization('Bearer ' + encoded_jwt)
2355
+ .get()
2356
+ .go()
2357
+ end
2358
+
2133
2359
  #
2134
2360
  # Retrieves the login report between the two instants for a particular user by Id. If you specify an application id, it will only return the
2135
2361
  # login counts for that application.
@@ -2191,7 +2417,7 @@ module FusionAuth
2191
2417
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
2192
2418
  def retrieve_user_using_jwt(encoded_jwt)
2193
2419
  startAnonymous.uri('/api/user')
2194
- .authorization('JWT ' + encoded_jwt)
2420
+ .authorization('Bearer ' + encoded_jwt)
2195
2421
  .get()
2196
2422
  .go()
2197
2423
  end
@@ -2467,6 +2693,20 @@ module FusionAuth
2467
2693
  .go()
2468
2694
  end
2469
2695
 
2696
+ #
2697
+ # Updates the connector with the given Id.
2698
+ #
2699
+ # @param connector_id [string] The Id of the connector to update.
2700
+ # @param request [OpenStruct, Hash] The request object that contains all of the new connector information.
2701
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
2702
+ def update_connector(connector_id, request)
2703
+ start.uri('/api/connector')
2704
+ .url_segment(connector_id)
2705
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
2706
+ .put()
2707
+ .go()
2708
+ end
2709
+
2470
2710
  #
2471
2711
  # Updates the consent with the given Id.
2472
2712
  #
@@ -2495,6 +2735,34 @@ module FusionAuth
2495
2735
  .go()
2496
2736
  end
2497
2737
 
2738
+ #
2739
+ # Updates the form with the given Id.
2740
+ #
2741
+ # @param form_id [string] The Id of the form to update.
2742
+ # @param request [OpenStruct, Hash] The request object that contains all of the new form information.
2743
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
2744
+ def update_form(form_id, request)
2745
+ start.uri('/api/form')
2746
+ .url_segment(form_id)
2747
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
2748
+ .put()
2749
+ .go()
2750
+ end
2751
+
2752
+ #
2753
+ # Updates the form field with the given Id.
2754
+ #
2755
+ # @param field_id [string] The Id of the form field to update.
2756
+ # @param request [OpenStruct, Hash] The request object that contains all of the new form field information.
2757
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
2758
+ def update_form_field(field_id, request)
2759
+ start.uri('/api/form/field')
2760
+ .url_segment(field_id)
2761
+ .body_handler(FusionAuth::JSONBodyHandler.new(request))
2762
+ .put()
2763
+ .go()
2764
+ end
2765
+
2498
2766
  #
2499
2767
  # Updates the group with the given Id.
2500
2768
  #
@@ -2712,7 +2980,7 @@ module FusionAuth
2712
2980
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
2713
2981
  def validate_jwt(encoded_jwt)
2714
2982
  startAnonymous.uri('/api/jwt/validate')
2715
- .authorization('JWT ' + encoded_jwt)
2983
+ .authorization('Bearer ' + encoded_jwt)
2716
2984
  .get()
2717
2985
  .go()
2718
2986
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fusionauth_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.4
4
+ version: 1.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Pontarelli
8
8
  - Daniel DeGroff
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-03-02 00:00:00.000000000 Z
12
+ date: 2020-10-26 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.
@@ -36,7 +36,7 @@ licenses:
36
36
  - Apache-2.0
37
37
  metadata:
38
38
  allowed_push_host: https://rubygems.org
39
- post_install_message:
39
+ post_install_message:
40
40
  rdoc_options: []
41
41
  require_paths:
42
42
  - lib
@@ -51,8 +51,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
51
  - !ruby/object:Gem::Version
52
52
  version: '0'
53
53
  requirements: []
54
- rubygems_version: 3.0.2
55
- signing_key:
54
+ rubygems_version: 3.1.4
55
+ signing_key:
56
56
  specification_version: 4
57
57
  summary: The Ruby client library for FusionAuth
58
58
  test_files: []