fusionauth_client 1.14.0 → 1.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +15 -1
- data/build.savant +1 -1
- data/fusionauth-ruby-client.iml +1 -1
- data/fusionauth_client.gemspec +1 -1
- data/lib/fusionauth/fusionauth_client.rb +7 -6
- data/lib/fusionauth/rest_client.rb +15 -1
- 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: f91a54dc500875d697bca113a8dfd213c8c4de1f4ac8b4cc8ee3eb605b83d98d
|
4
|
+
data.tar.gz: 05d4ed2eb2a09ee56a4d995115682d8661964b70b403bb88304a1bfcf5e4e810
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1570fbff542d1f5d7a4ed1c6168ac5a8264e6e97bdd7eaa560257ce6796ff7562cf81bbbe74310a0e997f016e055d7911d1e541d784f5048ea14ad4c851c8f80
|
7
|
+
data.tar.gz: d46ff0619da3c0d70ae9093f3a338216390286048b731ee336e785bab72b726d80c4e50230ebe8e847e708f98ffeeaa5f5dfd1339ecac0f28db743c7af1a28b9
|
data/Gemfile
CHANGED
@@ -1,7 +1,21 @@
|
|
1
|
+
# Copyright (c) 2019, FusionAuth, All Rights Reserved
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing,
|
10
|
+
# software distributed under the License is distributed on an
|
11
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
12
|
+
# either express or implied. See the License for the specific
|
13
|
+
# language governing permissions and limitations under the License.
|
14
|
+
|
1
15
|
source 'https://rubygems.org'
|
2
16
|
ruby '2.3.1'
|
3
17
|
|
4
|
-
gem "rake", "
|
18
|
+
gem "rake", "12.3.3"
|
5
19
|
gem "minitest", "5.8.3"
|
6
20
|
|
7
21
|
# Specify your gem's dependencies in fusionauth_client.gemspec
|
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.17.0", licenses: ["ApacheV2_0"]) {
|
20
20
|
workflow {
|
21
21
|
standard()
|
22
22
|
}
|
data/fusionauth-ruby-client.iml
CHANGED
@@ -10,6 +10,6 @@
|
|
10
10
|
<orderEntry type="sourceFolder" forTests="false" />
|
11
11
|
<orderEntry type="library" scope="PROVIDED" name="bundler (v2.0.2, rbenv: 2.3.1) [gem]" level="application" />
|
12
12
|
<orderEntry type="library" scope="PROVIDED" name="minitest (v5.8.3, rbenv: 2.3.1) [gem]" level="application" />
|
13
|
-
<orderEntry type="library" scope="PROVIDED" name="rake (
|
13
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v12.3.3, rbenv: 2.3.1) [gem]" level="application" />
|
14
14
|
</component>
|
15
15
|
</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.17.0'
|
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
|
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(
|
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
|
@@ -1,3 +1,17 @@
|
|
1
|
+
# Copyright (c) 2019, FusionAuth, All Rights Reserved
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing,
|
10
|
+
# software distributed under the License is distributed on an
|
11
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
12
|
+
# either express or implied. See the License for the specific
|
13
|
+
# language governing permissions and limitations under the License.
|
14
|
+
|
1
15
|
require 'base64'
|
2
16
|
require 'json'
|
3
17
|
require 'net/http'
|
@@ -41,7 +55,7 @@ module FusionAuth
|
|
41
55
|
# @param body_handler [BodyHandler] The body handler.
|
42
56
|
# @return [RESTClient] this
|
43
57
|
#
|
44
|
-
def
|
58
|
+
def body_handler(body_handler)
|
45
59
|
@body_handler = body_handler
|
46
60
|
self
|
47
61
|
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.
|
4
|
+
version: 1.17.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-06-02 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.
|