fusionauth_client 1.15.2 → 1.15.3

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
- SHA1:
3
- metadata.gz: 9a503cb29d7f7d064778354d1c2e90ecde0f8177
4
- data.tar.gz: 671e92f9f2e88694e2392c2f83a229437621222c
2
+ SHA256:
3
+ metadata.gz: 43bd0bd89fdd6ec3ce3a4b0dde7473ca5fc115267b8d1812bfa10b580cbc3410
4
+ data.tar.gz: babeb2aef80ce760f675120c6836085ba217717255295d7abf803998c3f2434f
5
5
  SHA512:
6
- metadata.gz: 74ced127af1c9ce394756371cd43e693da4d3fe1b788c4972841993c696681f9e99784850cda793d7cf6af2492271f76e0d1e8f19030cdea3957a028b8dc86ed
7
- data.tar.gz: e49b8691a7bb274ebded8f060ed157b153786aeaa4584a8a913fd6c8c85356533fcffc23b21dd2f9f9816eae3e42595ea223c405af9def5d006ee618788cb794
6
+ metadata.gz: d1de52b05abeac8c7490895c452b4aa9192d1c722e4e636ae1e4639cce7e4c69b3d07c3094f38b0f17e286ede486b6d5112ad0c4ca3cef795ee88d2ef403e328
7
+ data.tar.gz: 18051a9e1497294febad008597ef7cd44385800768bd49e0daf43709bc17de25c95026209534d63625b3c95554b07e8f239158d86cae5ed14f2e52cabdf7c3d3
@@ -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.2", licenses: ["ApacheV2_0"]) {
19
+ project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.15.3", licenses: ["ApacheV2_0"]) {
20
20
  workflow {
21
21
  standard()
22
22
  }
@@ -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.2'
7
+ spec.version = '1.15.3'
8
8
  spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
9
9
  spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
10
10
 
@@ -43,16 +43,13 @@ module FusionAuth
43
43
 
44
44
  #
45
45
  # Takes an action on a user. The user being actioned is called the "actionee" and the user taking the action is called the
46
- # "actioner". Both user ids are required. You pass the actionee's user id into the method and the actioner's is put into the
47
- # request object.
46
+ # "actioner". Both user ids are required in the request object.
48
47
  #
49
- # @param actionee_user_id [string] The actionee's user id.
50
48
  # @param request [OpenStruct, Hash] The action request that includes all of the information about the action being taken including
51
49
  # the id of the action, any options and the duration (if applicable).
52
50
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
53
- def action_user(actionee_user_id, request)
51
+ def action_user(request)
54
52
  start.uri('/api/user/action')
55
- .url_segment(actionee_user_id)
56
53
  .body_handler(FusionAuth::JSONBodyHandler.new(request))
57
54
  .post()
58
55
  .go()
@@ -922,11 +919,15 @@ module FusionAuth
922
919
  #
923
920
  # @param application_id [string] The Application Id for which you are requesting a new access token be issued.
924
921
  # @param encoded_jwt [string] The encoded JWT (access token).
922
+ # @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
924
+ # tokens enabled in order to receive a refresh token in the response.</p>
925
925
  # @return [FusionAuth::ClientResponse] The ClientResponse object.
926
- def issue_jwt(application_id, encoded_jwt)
926
+ def issue_jwt(application_id, encoded_jwt, refresh_token)
927
927
  start.uri('/api/jwt/issue')
928
928
  .authorization('JWT ' + encoded_jwt)
929
929
  .url_parameter('applicationId', application_id)
930
+ .url_parameter('refreshToken', refresh_token)
930
931
  .get()
931
932
  .go()
932
933
  end
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.15.2
4
+ version: 1.15.3
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-02-19 00:00:00.000000000 Z
12
+ date: 2020-02-27 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.
@@ -51,8 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
51
  - !ruby/object:Gem::Version
52
52
  version: '0'
53
53
  requirements: []
54
- rubyforge_project:
55
- rubygems_version: 2.5.1
54
+ rubygems_version: 3.0.2
56
55
  signing_key:
57
56
  specification_version: 4
58
57
  summary: The Ruby client library for FusionAuth