silkey-sdk 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/README.md +10 -5
- data/lib/silkey/version.rb +1 -1
- data/silkey-sdk.gemspec +8 -8
- metadata +8 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8f37e3a731e1250525daa64cbba2676f05ca174068385681db03a87f9431b93
|
4
|
+
data.tar.gz: 8b5c2cab19cc338acf549f3d560873752b330682c6c5baee34f694ae31e70410
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e5d6c28c863609c85e0dc5cdf990a2ad833678d1e0eea24d735185b2d7d7385ffb4d8f3aa481325c0427a127b7b55468264071fae85c9541917bd02b261ca03
|
7
|
+
data.tar.gz: d141c1b91aeb5fda18ed215af19d06346b47af34ced8369f822a45ca8df7a2f6cbf2c683fef7b8f25afdb6c71adfe5251520a7068ab9213068dfdac51695463a
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
|
1
|
+
![Silkey Logo](https://raw.githubusercontent.com/Silkey-Team/brand/master/silkey-word-black.png)
|
2
2
|
|
3
|
-
|
3
|
+
# Silkey SDK for Ruby
|
4
4
|
|
5
|
-
[
|
5
|
+
[![GitHub version](https://badge.fury.io/gh/Silkey-Team%2Fsilkey-sdk.svg)](https://badge.fury.io/gh/Silkey-Team%2Fsilkey-sdk)
|
6
|
+
[![Gem Version](https://badge.fury.io/rb/silkey-sdk.svg)](https://badge.fury.io/rb/silkey-sdk)
|
6
7
|
|
7
8
|
## Integration
|
8
9
|
|
@@ -10,8 +11,11 @@
|
|
10
11
|
|
11
12
|
```rb
|
12
13
|
Silkey::Configuration.setup do |config|
|
13
|
-
|
14
|
-
|
14
|
+
# for local development, use local provider url eg 'http://localhost:8545'
|
15
|
+
# for testing, we recommend using infura.io:
|
16
|
+
# - for sandbox: https://rinkeby.infura.io/v3/:id
|
17
|
+
# - for production: https://mainnet.infura.io/v3/:id
|
18
|
+
config.client_url = 'http://localhost:8545'
|
15
19
|
config.registry_contract_address = '--silky-registry-contract-address--'
|
16
20
|
config.enable_logs = false
|
17
21
|
end
|
@@ -33,6 +37,7 @@ end
|
|
33
37
|
| refId | no | string | It will be return with user token, you may use it to identify request
|
34
38
|
| scope | no | string | Scope of data to return in a token payload: `id` (default) returns only user address, `email` returns address + email
|
35
39
|
|
40
|
+
|
36
41
|
```rb
|
37
42
|
params = { :redirectUrl => 'https://your-website', :refId => '12ab' }
|
38
43
|
sso_params = Silkey::SDK.generate_sso_request_params(private_key, params)
|
data/lib/silkey/version.rb
CHANGED
data/silkey-sdk.gemspec
CHANGED
@@ -18,14 +18,14 @@ Gem::Specification.new do |spec|
|
|
18
18
|
|
19
19
|
# spec.files = ["lib/sdk.rb"]
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
21
|
+
spec.metadata = {
|
22
|
+
"bug_tracker_uri" => "https://github.com/Silkey-Team/ruby-sdk/issues",
|
23
|
+
"changelog_uri" => "https://github.com/Silkey-Team/ruby-sdk/blob/master/CHANGELOG.md",
|
24
|
+
"documentation_uri" => "https://www.rubydoc.info/gems/silkey-sdk/" + Silkey::VERSION,
|
25
|
+
"homepage_uri" => "https://silkey.io",
|
26
|
+
"source_code_uri" => "https://github.com/Silkey-Team/ruby-sdk",
|
27
|
+
# "wiki_uri" => "https://example.com/user/bestgemever/wiki"
|
28
|
+
}
|
29
29
|
|
30
30
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
31
31
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: silkey-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- silkey.io
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -264,7 +264,12 @@ files:
|
|
264
264
|
homepage: https://github.com/Silkey-Team/ruby-sdk
|
265
265
|
licenses:
|
266
266
|
- MIT
|
267
|
-
metadata:
|
267
|
+
metadata:
|
268
|
+
bug_tracker_uri: https://github.com/Silkey-Team/ruby-sdk/issues
|
269
|
+
changelog_uri: https://github.com/Silkey-Team/ruby-sdk/blob/master/CHANGELOG.md
|
270
|
+
documentation_uri: https://www.rubydoc.info/gems/silkey-sdk/0.0.3
|
271
|
+
homepage_uri: https://silkey.io
|
272
|
+
source_code_uri: https://github.com/Silkey-Team/ruby-sdk
|
268
273
|
post_install_message:
|
269
274
|
rdoc_options: []
|
270
275
|
require_paths:
|