fusionauth_client 1.22.0 → 1.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -3
- data/build.savant +1 -1
- data/fusionauth-ruby-client.iml +29 -1
- data/fusionauth_client.gemspec +1 -1
- data/lib/fusionauth/fusionauth_client.rb +113 -3
- 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: 61ebe66291227393968cfd972f5668175aca99e0780bc45f5b69b17b99524a82
|
4
|
+
data.tar.gz: 5579794527c8a3dfa909779b714cfe76c6f95e4561c8a01801d7b91595e45f47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f925ced42b1e203af544a548260e120c944fede38dcaf9d785d5c59ee0ed7f3093044a8662136618e2c44d3e5815ba1be815a11c117d1b5e8b6bd4ef1b88d8a3
|
7
|
+
data.tar.gz: a120d54a3319323474804b9514198dd05bf459c5eca9ffbffb57d710dfd7e3cfa98e99e457d7b306d4d27aac8e6131e2c5b24b9d65de4a1eff3c7c8d797fd35c
|
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.25.0", licenses: ["ApacheV2_0"]) {
|
20
20
|
workflow {
|
21
21
|
standard()
|
22
22
|
}
|
data/fusionauth-ruby-client.iml
CHANGED
@@ -8,8 +8,36 @@
|
|
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>
|
15
|
+
<component name="RakeTasksCache">
|
16
|
+
<option name="myRootTask">
|
17
|
+
<RakeTaskImpl id="rake">
|
18
|
+
<subtasks>
|
19
|
+
<RakeTaskImpl description="Build fusionauth_client-1.24.1.gem into the pkg directory" fullCommand="build" id="build" />
|
20
|
+
<RakeTaskImpl description="Remove any temporary products" fullCommand="clean" id="clean" />
|
21
|
+
<RakeTaskImpl description="Remove any generated files" fullCommand="clobber" id="clobber" />
|
22
|
+
<RakeTaskImpl description="Build and install fusionauth_client-1.24.1.gem into system gems" fullCommand="install" id="install" />
|
23
|
+
<RakeTaskImpl id="install">
|
24
|
+
<subtasks>
|
25
|
+
<RakeTaskImpl description="Build and install fusionauth_client-1.24.1.gem into system gems without network access" fullCommand="install:local" id="local" />
|
26
|
+
</subtasks>
|
27
|
+
</RakeTaskImpl>
|
28
|
+
<RakeTaskImpl description="Create tag v1.24.1 and build and push fusionauth_client-1.24.1.gem to https://rubygems.org" fullCommand="release[remote]" id="release[remote]" />
|
29
|
+
<RakeTaskImpl description="Run tests" fullCommand="test" id="test" />
|
30
|
+
<RakeTaskImpl description="" fullCommand="default" id="default" />
|
31
|
+
<RakeTaskImpl description="" fullCommand="release" id="release" />
|
32
|
+
<RakeTaskImpl id="release">
|
33
|
+
<subtasks>
|
34
|
+
<RakeTaskImpl description="" fullCommand="release:guard_clean" id="guard_clean" />
|
35
|
+
<RakeTaskImpl description="" fullCommand="release:rubygem_push" id="rubygem_push" />
|
36
|
+
<RakeTaskImpl description="" fullCommand="release:source_control_push" id="source_control_push" />
|
37
|
+
</subtasks>
|
38
|
+
</RakeTaskImpl>
|
39
|
+
</subtasks>
|
40
|
+
</RakeTaskImpl>
|
41
|
+
</option>
|
42
|
+
</component>
|
15
43
|
</module>
|
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.25.0'
|
8
8
|
spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
|
9
9
|
spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
|
10
10
|
|
@@ -1844,7 +1844,7 @@ module FusionAuth
|
|
1844
1844
|
#
|
1845
1845
|
# Retrieves the identity provider for the given id or all of the identity providers if the id is null.
|
1846
1846
|
#
|
1847
|
-
# @param identity_provider_id [string]
|
1847
|
+
# @param identity_provider_id [string] The identity provider Id.
|
1848
1848
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1849
1849
|
def retrieve_identity_provider(identity_provider_id)
|
1850
1850
|
start.uri('/api/identity-provider')
|
@@ -1853,6 +1853,20 @@ module FusionAuth
|
|
1853
1853
|
.go()
|
1854
1854
|
end
|
1855
1855
|
|
1856
|
+
#
|
1857
|
+
# Retrieves one or more identity provider for the given type. For types such as Google, Facebook, Twitter and LinkedIn, only a single
|
1858
|
+
# identity provider can exist. For types such as OpenID Connect and SAMLv2 more than one identity provider can be configured so this request
|
1859
|
+
# may return multiple identity providers.
|
1860
|
+
#
|
1861
|
+
# @param type [OpenStruct, Hash] The type of the identity provider.
|
1862
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1863
|
+
def retrieve_identity_provider_by_type(type)
|
1864
|
+
start.uri('/api/identity-provider')
|
1865
|
+
.url_parameter('type', type)
|
1866
|
+
.get()
|
1867
|
+
.go()
|
1868
|
+
end
|
1869
|
+
|
1856
1870
|
#
|
1857
1871
|
# Retrieves all of the identity providers.
|
1858
1872
|
#
|
@@ -2119,6 +2133,18 @@ module FusionAuth
|
|
2119
2133
|
.go()
|
2120
2134
|
end
|
2121
2135
|
|
2136
|
+
#
|
2137
|
+
# Retrieves a single refresh token by unique Id. This is not the same thing as the string value of the refresh token, if you have that, you already have what you need..
|
2138
|
+
#
|
2139
|
+
# @param user_id [string] The Id of the user.
|
2140
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
2141
|
+
def retrieve_refresh_token_by_id(user_id)
|
2142
|
+
start.uri('/api/jwt/refresh')
|
2143
|
+
.url_segment(user_id)
|
2144
|
+
.get()
|
2145
|
+
.go()
|
2146
|
+
end
|
2147
|
+
|
2122
2148
|
#
|
2123
2149
|
# Retrieves the refresh tokens that belong to the user with the given Id.
|
2124
2150
|
#
|
@@ -2484,8 +2510,30 @@ module FusionAuth
|
|
2484
2510
|
end
|
2485
2511
|
|
2486
2512
|
#
|
2487
|
-
# Revokes
|
2488
|
-
#
|
2513
|
+
# Revokes refresh tokens.
|
2514
|
+
#
|
2515
|
+
# Usage examples:
|
2516
|
+
# - Delete a single refresh token, pass in only the token.
|
2517
|
+
# revokeRefreshToken(token)
|
2518
|
+
#
|
2519
|
+
# - Delete all refresh tokens for a user, pass in only the userId.
|
2520
|
+
# revokeRefreshToken(null, userId)
|
2521
|
+
#
|
2522
|
+
# - Delete all refresh tokens for a user for a specific application, pass in both the userId and the applicationId.
|
2523
|
+
# revokeRefreshToken(null, userId, applicationId)
|
2524
|
+
#
|
2525
|
+
# - Delete all refresh tokens for an application
|
2526
|
+
# revokeRefreshToken(null, null, applicationId)
|
2527
|
+
#
|
2528
|
+
# Note: <code>null</code> may be handled differently depending upon the programming language.
|
2529
|
+
#
|
2530
|
+
# See also: (method names may vary by language... but you'll figure it out)
|
2531
|
+
#
|
2532
|
+
# - revokeRefreshTokenById
|
2533
|
+
# - revokeRefreshTokenByToken
|
2534
|
+
# - revokeRefreshTokensByUserId
|
2535
|
+
# - revokeRefreshTokensByApplicationId
|
2536
|
+
# - revokeRefreshTokensByUserIdForApplication
|
2489
2537
|
#
|
2490
2538
|
# @param token [string] (Optional) The refresh token to delete.
|
2491
2539
|
# @param user_id [string] (Optional) The user id whose tokens to delete.
|
@@ -2500,6 +2548,68 @@ module FusionAuth
|
|
2500
2548
|
.go()
|
2501
2549
|
end
|
2502
2550
|
|
2551
|
+
#
|
2552
|
+
# Revokes a single refresh token by the unique Id. The unique Id is not sensitive as it cannot be used to obtain another JWT.
|
2553
|
+
#
|
2554
|
+
# @param token_id [string] The unique Id of the token to delete.
|
2555
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
2556
|
+
def revoke_refresh_token_by_id(token_id)
|
2557
|
+
start.uri('/api/jwt/refresh')
|
2558
|
+
.url_segment(token_id)
|
2559
|
+
.delete()
|
2560
|
+
.go()
|
2561
|
+
end
|
2562
|
+
|
2563
|
+
#
|
2564
|
+
# 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.
|
2565
|
+
#
|
2566
|
+
# @param token [string] The refresh token to delete.
|
2567
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
2568
|
+
def revoke_refresh_token_by_token(token)
|
2569
|
+
start.uri('/api/jwt/refresh')
|
2570
|
+
.url_parameter('token', token)
|
2571
|
+
.delete()
|
2572
|
+
.go()
|
2573
|
+
end
|
2574
|
+
|
2575
|
+
#
|
2576
|
+
# Revoke all refresh tokens that belong to an application by applicationId.
|
2577
|
+
#
|
2578
|
+
# @param application_id [string] The unique Id of the application that you want to delete all refresh tokens for.
|
2579
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
2580
|
+
def revoke_refresh_tokens_by_application_id(application_id)
|
2581
|
+
start.uri('/api/jwt/refresh')
|
2582
|
+
.url_parameter('applicationId', application_id)
|
2583
|
+
.delete()
|
2584
|
+
.go()
|
2585
|
+
end
|
2586
|
+
|
2587
|
+
#
|
2588
|
+
# Revoke all refresh tokens that belong to a user by user Id.
|
2589
|
+
#
|
2590
|
+
# @param user_id [string] The unique Id of the user that you want to delete all refresh tokens for.
|
2591
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
2592
|
+
def revoke_refresh_tokens_by_user_id(user_id)
|
2593
|
+
start.uri('/api/jwt/refresh')
|
2594
|
+
.url_parameter('userId', user_id)
|
2595
|
+
.delete()
|
2596
|
+
.go()
|
2597
|
+
end
|
2598
|
+
|
2599
|
+
#
|
2600
|
+
# Revoke all refresh tokens that belong to a user by user Id for a specific application by applicationId.
|
2601
|
+
#
|
2602
|
+
# @param user_id [string] The unique Id of the user that you want to delete all refresh tokens for.
|
2603
|
+
# @param application_id [string] The unique Id of the application that you want to delete refresh tokens for.
|
2604
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
2605
|
+
def revoke_refresh_tokens_by_user_id_for_application(user_id, application_id)
|
2606
|
+
start.uri('/api/jwt/refresh')
|
2607
|
+
.url_parameter('userId', user_id)
|
2608
|
+
.url_parameter('applicationId', application_id)
|
2609
|
+
.delete()
|
2610
|
+
.go()
|
2611
|
+
end
|
2612
|
+
|
2503
2613
|
#
|
2504
2614
|
# Revokes a single User consent by Id.
|
2505
2615
|
#
|
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.25.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:
|
12
|
+
date: 2021-03-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.
|