fusionauth_client 1.21.0 → 1.24.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: a2112fbc16e044c2716b50a04c2a720acc7616e99e0119bc494c721947282504
4
- data.tar.gz: 902dcf9aa23e9ea20ec66636d9cdb30d210adc6735cc56e60058c6c8eb643235
3
+ metadata.gz: d68378f0743777cc83d27ffb6bf0cdaf348f4f7630776b818d37995d00e9b883
4
+ data.tar.gz: e35f01e8cfb2bba85296c4b12da1118362c5e02d14c2f78707479e7766d6f3e3
5
5
  SHA512:
6
- metadata.gz: 3c754dbde8485f89dc21b9b746b8ca4880ea8135612af8dcf056798ff92c0d98267b981d78fe1643574348cd4e4b8892df6b0807ff34581fcbfb89e403c266e1
7
- data.tar.gz: 240debc7317d5c870636dcccf5aea0380b98dfe95ec10db183992658b8eb140970ac8c5084366ff013b7fcf09412d69b1e9fb2a5d9e3143935e06559004e5a9b
6
+ metadata.gz: 6966b6e5029bfb6f8ec8d4cdfacc2076fa03f26a891dd1be19296755d58dd4a86d8b217889c1c664743b354fa193b1768668014fdd2c40fa793f8e99a21491f4
7
+ data.tar.gz: 6cf37a3976925582cde557bba703ec767c2ab17fa80ba36fc3c2d8760571c33582aaf84b669c13d7f6f36683bb50ab69df2c4e0e937ec224faf4013403f7f2e5
data/README.md CHANGED
@@ -59,12 +59,19 @@ response = client.login({
59
59
  user = response.success.response.user
60
60
  ```
61
61
 
62
- ## Contributing
62
+ ## Questions and support
63
+
64
+ If you have a question or support issue regarding this client library, we'd love to hear from you.
65
+
66
+ If you have a paid edition with support included, please [open a ticket in your account portal](https://account.fusionauth.io/account/support/). Learn more about [paid editions here](https://fusionauth.io/pricing/).
63
67
 
64
- Bug reports and pull requests are welcome on GitHub at https://github.com/FusionAuth/fusionauth-ruby-client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
68
+ Otherwise, please [post your question in the community forum](https://fusionauth.io/community/forum/).
69
+
70
+ ## Contributing
65
71
 
72
+ Bug reports and pull requests are welcome on GitHub at https://github.com/FusionAuth/fusionauth-ruby-client.
66
73
 
67
74
  ## License
68
75
 
69
- The gem is available as open source under the terms of the [Apache v2.0 License](https://opensource.org/licenses/Apache-2.0).
76
+ This code is available as open source under the terms of the [Apache v2.0 License](https://opensource.org/licenses/Apache-2.0).
70
77
 
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.21.0", licenses: ["ApacheV2_0"]) {
19
+ project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.24.0", licenses: ["ApacheV2_0"]) {
20
20
  workflow {
21
21
  standard()
22
22
  }
@@ -8,7 +8,7 @@
8
8
  </content>
9
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.1.4, rbenv: 2.5.1) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v2.2.5, rbenv: 2.5.1) [gem]" level="application" />
12
12
  <orderEntry type="library" scope="PROVIDED" name="minitest (v5.8.3, rbenv: 2.5.1) [gem]" level="application" />
13
13
  <orderEntry type="library" scope="PROVIDED" name="rake (v12.3.3, rbenv: 2.5.1) [gem]" level="application" />
14
14
  </component>
@@ -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.21.0'
7
+ spec.version = '1.24.0'
8
8
  spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
9
9
  spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
10
10
 
@@ -652,6 +652,20 @@ module FusionAuth
652
652
  .go()
653
653
  end
654
654
 
655
+ #
656
+ # Deletes the tenant for the given Id asynchronously.
657
+ # This method is helpful if you do not want to wait for the delete operation to complete.
658
+ #
659
+ # @param tenant_id [string] The Id of the tenant to delete.
660
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
661
+ def delete_tenant_async(tenant_id)
662
+ start.uri('/api/tenant')
663
+ .url_segment(tenant_id)
664
+ .url_parameter('async', true)
665
+ .delete()
666
+ .go()
667
+ end
668
+
655
669
  #
656
670
  # Deletes the theme for the given Id.
657
671
  #
@@ -2470,8 +2484,30 @@ module FusionAuth
2470
2484
  end
2471
2485
 
2472
2486
  #
2473
- # Revokes a single refresh token, all tokens for a user or all tokens for an application. If you provide a user id
2474
- # and an application id, this will delete all the refresh tokens for that user for that application.
2487
+ # Revokes refresh tokens.
2488
+ #
2489
+ # Usage examples:
2490
+ # - Delete a single refresh token, pass in only the token.
2491
+ # revokeRefreshToken(token)
2492
+ #
2493
+ # - Delete all refresh tokens for a user, pass in only the userId.
2494
+ # revokeRefreshToken(null, userId)
2495
+ #
2496
+ # - Delete all refresh tokens for a user for a specific application, pass in both the userId and the applicationId.
2497
+ # revokeRefreshToken(null, userId, applicationId)
2498
+ #
2499
+ # - Delete all refresh tokens for an application
2500
+ # revokeRefreshToken(null, null, applicationId)
2501
+ #
2502
+ # Note: <code>null</code> may be handled differently depending upon the programming language.
2503
+ #
2504
+ # See also: (method names may vary by language... but you'll figure it out)
2505
+ #
2506
+ # - revokeRefreshTokenById
2507
+ # - revokeRefreshTokenByToken
2508
+ # - revokeRefreshTokensByUserId
2509
+ # - revokeRefreshTokensByApplicationId
2510
+ # - revokeRefreshTokensByUserIdForApplication
2475
2511
  #
2476
2512
  # @param token [string] (Optional) The refresh token to delete.
2477
2513
  # @param user_id [string] (Optional) The user id whose tokens to delete.
@@ -2486,6 +2522,68 @@ module FusionAuth
2486
2522
  .go()
2487
2523
  end
2488
2524
 
2525
+ #
2526
+ # Revokes a single refresh token by the unique Id. The unique Id is not sensitive as it cannot be used to obtain another JWT.
2527
+ #
2528
+ # @param token_id [string] The unique Id of the token to delete.
2529
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
2530
+ def revoke_refresh_token_by_id(token_id)
2531
+ start.uri('/api/jwt/refresh')
2532
+ .url_segment(token_id)
2533
+ .delete()
2534
+ .go()
2535
+ end
2536
+
2537
+ #
2538
+ # Revokes a single refresh token by using the actual refresh token value. This refresh token value is sensitive, so be careful with this API request.
2539
+ #
2540
+ # @param token [string] The refresh token to delete.
2541
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
2542
+ def revoke_refresh_token_by_token(token)
2543
+ start.uri('/api/jwt/refresh')
2544
+ .url_parameter('token', token)
2545
+ .delete()
2546
+ .go()
2547
+ end
2548
+
2549
+ #
2550
+ # Revoke all refresh tokens that belong to an application by applicationId.
2551
+ #
2552
+ # @param application_id [string] The unique Id of the application that you want to delete all refresh tokens for.
2553
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
2554
+ def revoke_refresh_tokens_by_application_id(application_id)
2555
+ start.uri('/api/jwt/refresh')
2556
+ .url_parameter('applicationId', application_id)
2557
+ .delete()
2558
+ .go()
2559
+ end
2560
+
2561
+ #
2562
+ # Revoke all refresh tokens that belong to a user by user Id.
2563
+ #
2564
+ # @param user_id [string] The unique Id of the user that you want to delete all refresh tokens for.
2565
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
2566
+ def revoke_refresh_tokens_by_user_id(user_id)
2567
+ start.uri('/api/jwt/refresh')
2568
+ .url_parameter('userId', user_id)
2569
+ .delete()
2570
+ .go()
2571
+ end
2572
+
2573
+ #
2574
+ # Revoke all refresh tokens that belong to a user by user Id for a specific application by applicationId.
2575
+ #
2576
+ # @param user_id [string] The unique Id of the user that you want to delete all refresh tokens for.
2577
+ # @param application_id [string] The unique Id of the application that you want to delete refresh tokens for.
2578
+ # @return [FusionAuth::ClientResponse] The ClientResponse object.
2579
+ def revoke_refresh_tokens_by_user_id_for_application(user_id, application_id)
2580
+ start.uri('/api/jwt/refresh')
2581
+ .url_parameter('userId', user_id)
2582
+ .url_parameter('applicationId', application_id)
2583
+ .delete()
2584
+ .go()
2585
+ end
2586
+
2489
2587
  #
2490
2588
  # Revokes a single User consent by Id.
2491
2589
  #
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.21.0
4
+ version: 1.24.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: 2020-11-10 00:00:00.000000000 Z
12
+ date: 2021-02-11 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.