fusionauth_client 1.18.0 → 1.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/build.savant +1 -1
- data/fusionauth-ruby-client.iml +1 -1
- data/fusionauth_client.gemspec +1 -1
- data/lib/fusionauth/fusionauth_client.rb +45 -6
- 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: d303bd307e78872200ef01bc1e844055b9ea1ae03d1b2d6511b3461d5c74982c
|
4
|
+
data.tar.gz: ca014231534dc88b074bf0b346f6816dda024c2f616084e9597384582d85504b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aef780bb6cf6fc5c2e28f7f85eccdb374994e46ad23ce2114d21c22b4b24efc44e807164edace5cd804ac8d3a72f53567e6eb268ed881480d563138361137227
|
7
|
+
data.tar.gz: e4b5f5c4c42e8f9a957d504541f4484ef8edbe7f63566559e93a1695821406730e5b36ea844a2ba7351d7c179227b4b69cc051918c3c413097ff4ea313199623
|
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.19.0", licenses: ["ApacheV2_0"]) {
|
20
20
|
workflow {
|
21
21
|
standard()
|
22
22
|
}
|
data/fusionauth-ruby-client.iml
CHANGED
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.19.0'
|
8
8
|
spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
|
9
9
|
spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
|
10
10
|
|
@@ -782,8 +782,8 @@ module FusionAuth
|
|
782
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.
|
783
783
|
#
|
784
784
|
# @param code [string] The authorization code returned on the /oauth2/authorize response.
|
785
|
-
# @param client_id [string]
|
786
|
-
# @param client_secret [string] (Optional) The client secret. This value
|
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.
|
787
787
|
# @param redirect_uri [string] The URI to redirect to upon a successful request.
|
788
788
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
789
789
|
def exchange_o_auth_code_for_access_token(code, client_id, client_secret, redirect_uri)
|
@@ -975,9 +975,33 @@ module FusionAuth
|
|
975
975
|
end
|
976
976
|
|
977
977
|
#
|
978
|
-
# Bulk imports
|
979
|
-
#
|
980
|
-
#
|
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.
|
981
1005
|
#
|
982
1006
|
# @param request [OpenStruct, Hash] The request that contains all of the information about all of the users to import.
|
983
1007
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
@@ -998,7 +1022,7 @@ module FusionAuth
|
|
998
1022
|
# @param application_id [string] The Application Id for which you are requesting a new access token be issued.
|
999
1023
|
# @param encoded_jwt [string] The encoded JWT (access token).
|
1000
1024
|
# @param refresh_token [string] (Optional) An existing refresh token used to request a refresh token in addition to a JWT in the response.
|
1001
|
-
# <p>The target application represented by the
|
1025
|
+
# <p>The target application represented by the applicationId request parameter must have refresh
|
1002
1026
|
# tokens enabled in order to receive a refresh token in the response.</p>
|
1003
1027
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1004
1028
|
def issue_jwt(application_id, encoded_jwt, refresh_token)
|
@@ -1447,6 +1471,21 @@ module FusionAuth
|
|
1447
1471
|
.go()
|
1448
1472
|
end
|
1449
1473
|
|
1474
|
+
#
|
1475
|
+
# Re-sends the verification email to the user. If the Application has configured a specific email template this will be used
|
1476
|
+
# instead of the tenant configuration.
|
1477
|
+
#
|
1478
|
+
# @param application_id [string] The unique Application Id to used to resolve an application specific email template.
|
1479
|
+
# @param email [string] The email address of the user that needs a new verification email.
|
1480
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1481
|
+
def resend_email_verification_with_application_template(application_id, email)
|
1482
|
+
start.uri('/api/user/verify-email')
|
1483
|
+
.url_parameter('applicationId', application_id)
|
1484
|
+
.url_parameter('email', email)
|
1485
|
+
.put()
|
1486
|
+
.go()
|
1487
|
+
end
|
1488
|
+
|
1450
1489
|
#
|
1451
1490
|
# Re-sends the application registration verification email to the user.
|
1452
1491
|
#
|
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.19.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-
|
12
|
+
date: 2020-09-04 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.
|