fusionauth_client 1.0.12 → 1.1.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/Gemfile +0 -1
- data/README.md +2 -4
- data/build.savant +14 -2
- data/fusionauth_client.gemspec +1 -1
- data/lib/fusionauth/fusionauth_client.rb +19 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c4cc881b3128aa728f08c6d2f8fa680a683306b
|
4
|
+
data.tar.gz: af5ccb02f618b58d2680617a16e2a48fad418758
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99a24c958b7a6ccf5a5aecb7338c09f319ce3474d8922add1fcb0c4451cad64411b9ccb7b3f89f902415e9b5428c5d745e9f868255685c8fa8e4f2f687a80471
|
7
|
+
data.tar.gz: 5a266543a6d500755f6a621df7914a26c4a2f54c623b9fb5cb3c42bf09ede01797288a670f022e12a79c05f17aebaadd7f8d19a29f1dd041414a491cb3432d8a
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -35,11 +35,9 @@ client.register!(id, {
|
|
35
35
|
:registration => {
|
36
36
|
:applicationId => application_id,
|
37
37
|
:data => {
|
38
|
-
:
|
39
|
-
:foo => 'bar'
|
40
|
-
},
|
41
|
-
:preferredLanguages => %w(en fr)
|
38
|
+
:foo => 'bar'
|
42
39
|
},
|
40
|
+
:preferredLanguages => %w(en fr),
|
43
41
|
:roles => %w(user)
|
44
42
|
}
|
45
43
|
})
|
data/build.savant
CHANGED
@@ -1,10 +1,22 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c)
|
2
|
+
* Copyright (c) 2018, FusionAuth, All Rights Reserved
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing,
|
11
|
+
* software distributed under the License is distributed on an
|
12
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
13
|
+
* either express or implied. See the License for the specific
|
14
|
+
* language governing permissions and limitations under the License.
|
3
15
|
*/
|
4
16
|
savantVersion = "1.0.0"
|
5
17
|
|
6
18
|
pubVersion = ""
|
7
|
-
project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.
|
19
|
+
project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.1.2", licenses: ["ApacheV2_0"]) {
|
8
20
|
workflow {
|
9
21
|
standard()
|
10
22
|
}
|
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.0
|
7
|
+
spec.version = '1.1.0'
|
8
8
|
spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
|
9
9
|
spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
|
10
10
|
|
@@ -648,6 +648,21 @@ module FusionAuth
|
|
648
648
|
.go()
|
649
649
|
end
|
650
650
|
|
651
|
+
#
|
652
|
+
# Handles login via third-parties including Social login, external OAuth and OpenID Connect, and other
|
653
|
+
# login systems.
|
654
|
+
#
|
655
|
+
# @param request [OpenStruct, Hash] The third-party login request that contains information from the third-party login
|
656
|
+
# providers that FusionAuth uses to reconcile the user's account.
|
657
|
+
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
658
|
+
#
|
659
|
+
def identity_provider_login(request)
|
660
|
+
start.uri('/api/identity-provider/login')
|
661
|
+
.body_handler(FusionAuth::JSONBodyHandler.new(request))
|
662
|
+
.post()
|
663
|
+
.go()
|
664
|
+
end
|
665
|
+
|
651
666
|
#
|
652
667
|
# Bulk imports multiple users. This does some validation, but then tries to run batch inserts of users. This reduces
|
653
668
|
# latency when inserting lots of users. Therefore, the error response might contain some information about failures,
|
@@ -721,7 +736,7 @@ module FusionAuth
|
|
721
736
|
# client and revoke the refresh token stored. This API does nothing if the request does not contain an access
|
722
737
|
# token or refresh token cookies.
|
723
738
|
#
|
724
|
-
# @param global [
|
739
|
+
# @param global [Boolean] When this value is set to true all of the refresh tokens issued to the owner of the
|
725
740
|
# provided token will be revoked.
|
726
741
|
# @param refresh_token [string] (Optional) The refresh_token as a request parameter instead of coming in via a cookie.
|
727
742
|
# If provided this takes precedence over the cookie.
|
@@ -920,7 +935,7 @@ module FusionAuth
|
|
920
935
|
#
|
921
936
|
# Retrieves a single audit log for the given Id.
|
922
937
|
#
|
923
|
-
# @param audit_log_id [
|
938
|
+
# @param audit_log_id [Numeric] The Id of the audit log to retrieve.
|
924
939
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
925
940
|
#
|
926
941
|
def retrieve_audit_log(audit_log_id)
|
@@ -1397,8 +1412,8 @@ module FusionAuth
|
|
1397
1412
|
# Retrieves the last number of login records for a user.
|
1398
1413
|
#
|
1399
1414
|
# @param user_id [string] The Id of the user.
|
1400
|
-
# @param offset [
|
1401
|
-
# @param limit [
|
1415
|
+
# @param offset [Numeric] The initial record. e.g. 0 is the last login, 100 will be the 100th most recent login.
|
1416
|
+
# @param limit [Numeric] (Optional, defaults to 10) The number of records to retrieve.
|
1402
1417
|
# @return [FusionAuth::ClientResponse] The ClientResponse object.
|
1403
1418
|
#
|
1404
1419
|
def retrieve_user_login_report(user_id, offset, limit)
|
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.0
|
4
|
+
version: 1.1.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: 2018-
|
12
|
+
date: 2018-11-14 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.
|