fusionauth_client 1.23.0 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -3
- data/build.savant +1 -1
- data/fusionauth-ruby-client.iml +1 -1
- data/fusionauth_client.gemspec +1 -1
- data/lib/fusionauth/fusionauth_client.rb +86 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d68378f0743777cc83d27ffb6bf0cdaf348f4f7630776b818d37995d00e9b883
|
4
|
+
data.tar.gz: e35f01e8cfb2bba85296c4b12da1118362c5e02d14c2f78707479e7766d6f3e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
##
|
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
|
-
|
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
|
-
|
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.
|
19
|
+
project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.24.0", licenses: ["ApacheV2_0"]) {
|
20
20
|
workflow {
|
21
21
|
standard()
|
22
22
|
}
|
data/fusionauth-ruby-client.iml
CHANGED
@@ -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.
|
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>
|
data/fusionauth_client.gemspec
CHANGED
@@ -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.
|
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
|
|
@@ -2484,8 +2484,30 @@ module FusionAuth
|
|
2484
2484
|
end
|
2485
2485
|
|
2486
2486
|
#
|
2487
|
-
# Revokes
|
2488
|
-
#
|
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
|
2489
2511
|
#
|
2490
2512
|
# @param token [string] (Optional) The refresh token to delete.
|
2491
2513
|
# @param user_id [string] (Optional) The user id whose tokens to delete.
|
@@ -2500,6 +2522,68 @@ module FusionAuth
|
|
2500
2522
|
.go()
|
2501
2523
|
end
|
2502
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
|
+
|
2503
2587
|
#
|
2504
2588
|
# Revokes a single User consent by Id.
|
2505
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.
|
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: 2021-
|
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.
|