fusionauth_client 1.42.0 → 1.42.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -2
- data/Gemfile +2 -0
- data/Gemfile.lock +30 -2
- data/README.adoc +106 -0
- data/build.savant +2 -2
- data/doc/FusionAuth/FusionAuthClient.md +1742 -0
- data/doc/FusionAuth.md +12 -0
- data/doc/created.rid +2 -0
- data/doc/index.db +0 -0
- data/fusionauth_client.gemspec +2 -2
- data/lib/fusionauth/rest_client.rb +16 -1
- metadata +7 -3
- data/README.md +0 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04e95448e4ab27df0e4991b81050e250f87b970e71b2ef6467da31e39dbbf724
|
4
|
+
data.tar.gz: 2b6f6d1e2a352ea3ef419b31f8cf80f1ad633680500d11d1eb7d60e848a8f789
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80901262c799dc684db5dfb3fa1f3cce0058d2839cded39142dadb5829d5e9b7907b5d620a94b9903eaf3e1645c52a1702f34a42cf53738830653b4079195942
|
7
|
+
data.tar.gz: b39412acd4f761126ba275fdf769f6f04bb26f23613481bd88c0678da2009930894b3cc596c430a069063d06fcbb02520dc3174a8fb86b2d377fa767245a2c20
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,13 +1,40 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fusionauth_client (1.42.
|
4
|
+
fusionauth_client (1.42.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
+
cgi (0.3.6)
|
10
|
+
erb (2.2.3)
|
11
|
+
cgi
|
12
|
+
extralite-bundle (1.19)
|
13
|
+
mini_portile2 (2.8.1)
|
9
14
|
minitest (5.8.3)
|
15
|
+
nokogiri (1.13.10)
|
16
|
+
mini_portile2 (~> 2.8.0)
|
17
|
+
racc (~> 1.4)
|
18
|
+
nokogiri (1.13.10-x86_64-darwin)
|
19
|
+
racc (~> 1.4)
|
20
|
+
nokogiri (1.13.10-x86_64-linux)
|
21
|
+
racc (~> 1.4)
|
22
|
+
psych (5.0.1)
|
23
|
+
stringio
|
24
|
+
racc (1.6.2)
|
10
25
|
rake (12.3.3)
|
26
|
+
rdoc (6.5.0)
|
27
|
+
psych (>= 4.0.0)
|
28
|
+
rdoc-markdown (0.4)
|
29
|
+
erb (~> 2.0)
|
30
|
+
extralite-bundle (~> 1.0)
|
31
|
+
rdoc (~> 6.0)
|
32
|
+
reverse_markdown (~> 2.0)
|
33
|
+
unindent (~> 1.0)
|
34
|
+
reverse_markdown (2.1.1)
|
35
|
+
nokogiri
|
36
|
+
stringio (3.0.4)
|
37
|
+
unindent (1.0)
|
11
38
|
|
12
39
|
PLATFORMS
|
13
40
|
ruby
|
@@ -19,9 +46,10 @@ DEPENDENCIES
|
|
19
46
|
fusionauth_client!
|
20
47
|
minitest (= 5.8.3)
|
21
48
|
rake (= 12.3.3)
|
49
|
+
rdoc-markdown (~> 0.4)
|
22
50
|
|
23
51
|
RUBY VERSION
|
24
|
-
ruby 2.
|
52
|
+
ruby 2.7.0p0
|
25
53
|
|
26
54
|
BUNDLED WITH
|
27
55
|
2.2.5
|
data/README.adoc
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
== FusionAuth::FusionAuthClient
|
2
|
+
|
3
|
+
This gem is the Ruby client library that helps connect Ruby applications to the FusionAuth (https://fusionauth.io) Identity and User Management platform.
|
4
|
+
|
5
|
+
== Getting Started
|
6
|
+
|
7
|
+
=== Installation
|
8
|
+
|
9
|
+
Add this line to your application’s Gemfile:
|
10
|
+
|
11
|
+
[source,ruby]
|
12
|
+
----
|
13
|
+
gem 'fusionauth_client'
|
14
|
+
----
|
15
|
+
|
16
|
+
And then execute:
|
17
|
+
|
18
|
+
[source,shell]
|
19
|
+
----
|
20
|
+
bundle
|
21
|
+
----
|
22
|
+
|
23
|
+
Or install it yourself as:
|
24
|
+
|
25
|
+
[source,shell]
|
26
|
+
----
|
27
|
+
gem install fusionauth_client
|
28
|
+
----
|
29
|
+
|
30
|
+
=== Usage
|
31
|
+
|
32
|
+
Once the gem is installed, you can call FusionAuth APIs.
|
33
|
+
|
34
|
+
[source,ruby]
|
35
|
+
----
|
36
|
+
require 'fusionauth/fusionauth_client'
|
37
|
+
require 'securerandom'
|
38
|
+
require 'pp'
|
39
|
+
|
40
|
+
# Construct the FusionAuth Client
|
41
|
+
client = FusionAuth::FusionAuthClient.new(
|
42
|
+
'REPLACE_ME',
|
43
|
+
'http://localhost:9011'
|
44
|
+
)
|
45
|
+
|
46
|
+
application_id = '85a03867-dccf-4882-adde-1a79aeec50df'
|
47
|
+
|
48
|
+
# Create a user + registration
|
49
|
+
id = SecureRandom.uuid
|
50
|
+
response = client.register(id, {
|
51
|
+
user: {
|
52
|
+
firstName: 'Ruby',
|
53
|
+
lastName: 'User',
|
54
|
+
email: 'ruby_user@example.com',
|
55
|
+
password: 'password'
|
56
|
+
},
|
57
|
+
registration: {
|
58
|
+
applicationId: application_id,
|
59
|
+
data: {
|
60
|
+
foo: 'bar'
|
61
|
+
},
|
62
|
+
preferredLanguages: %w(en fr),
|
63
|
+
roles: %w(dev)
|
64
|
+
}
|
65
|
+
})
|
66
|
+
|
67
|
+
#pp response
|
68
|
+
if response.success_response
|
69
|
+
pp response.success_response
|
70
|
+
else
|
71
|
+
if response.exception
|
72
|
+
# if we can't connect
|
73
|
+
print response.exception
|
74
|
+
end
|
75
|
+
print "status: #{response.status}"
|
76
|
+
print response.error_response
|
77
|
+
exit
|
78
|
+
end
|
79
|
+
----
|
80
|
+
|
81
|
+
== Documentation
|
82
|
+
|
83
|
+
Documentation can be found at https://github.com/FusionAuth/fusionauth-ruby-client/tree/master/doc[doc].
|
84
|
+
|
85
|
+
=== Questions and support
|
86
|
+
|
87
|
+
If you have a question or support issue regarding this client library, we’d love to hear from you.
|
88
|
+
|
89
|
+
If you have a paid edition with support included, please https://account.fusionauth.io/account/support/[open a ticket in your account portal]. Learn more about https://fusionauth.io/pricing[paid editions here].
|
90
|
+
|
91
|
+
Otherwise, please https://fusionauth.io/community/forum/[post your question in the community forum].
|
92
|
+
|
93
|
+
=== Contributing
|
94
|
+
|
95
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/FusionAuth/fusionauth-ruby-client.
|
96
|
+
|
97
|
+
All issues filed in this repository must abide by the [FusionAuth community guidelines](https://fusionauth.io/community/forum/topic/1000/code-of-conduct).
|
98
|
+
|
99
|
+
=== License
|
100
|
+
|
101
|
+
This code is available as open source under the terms of the https://opensource.org/licenses/Apache-2.0[Apache v2.0 License].
|
102
|
+
|
103
|
+
//tag::forDocSite[]
|
104
|
+
|
105
|
+
//end::forDocSite[]
|
106
|
+
|
data/build.savant
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) 2018-
|
2
|
+
* Copyright (c) 2018-2023, FusionAuth, All Rights Reserved
|
3
3
|
*
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
5
|
* you may not use this file except in compliance with the License.
|
@@ -15,7 +15,7 @@
|
|
15
15
|
*/
|
16
16
|
|
17
17
|
pubVersion = ""
|
18
|
-
project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.42.
|
18
|
+
project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.42.1", licenses: ["ApacheV2_0"]) {
|
19
19
|
workflow {
|
20
20
|
fetch {
|
21
21
|
cache()
|