auth0 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/README.md +2 -2
- data/lib/auth0/client.rb +14 -1
- data/lib/auth0/version.rb +1 -1
- 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: 94757c97356e3c413b5ee95ea59c6d1ecbbae9b4
|
4
|
+
data.tar.gz: f5f2e8cc365840a744e103526e0788759a4bc174
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: def29cb30304051a79583248f5bef3439058e51e288e1429106f6bcd11317fa3733d0b3060ec6c81e8fc9a2997c4923c0e46e49ab50e9ec4dbff80f00b72b174
|
7
|
+
data.tar.gz: 8bb427b2ab107e0bebd2aef5b4325e3784bf2bcf42be7bee423e1eba7f9b6e0533ad274dfb9bab869198419dd97be2a34d0b13c9e73fe96be4512bff3006cc0b
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -5,7 +5,7 @@ Ruby client for [Auth0](https://auth0.com)
|
|
5
5
|
## Installation
|
6
6
|
|
7
7
|
```
|
8
|
-
$ gem install
|
8
|
+
$ gem install auth0
|
9
9
|
```
|
10
10
|
|
11
11
|
## Basic usage
|
@@ -24,4 +24,4 @@ puts auth0.get_connections;
|
|
24
24
|
|
25
25
|
## License
|
26
26
|
|
27
|
-
MIT 2014 - Auth0 INC.
|
27
|
+
MIT 2014 - Auth0 INC.
|
data/lib/auth0/client.rb
CHANGED
@@ -34,4 +34,17 @@ class Auth0Client
|
|
34
34
|
response = self.class.delete("/api/users/#{id}", { headers: @headers })
|
35
35
|
response.body
|
36
36
|
end
|
37
|
-
|
37
|
+
|
38
|
+
def delegation(options)
|
39
|
+
response = self.class.post("/delegation", {
|
40
|
+
body: {
|
41
|
+
client_id: options[:client_id],
|
42
|
+
grant_type: "urn:ietf:params:oauth:grant-type:jwt-bearer",
|
43
|
+
id_token: options[:id_token],
|
44
|
+
target: options[:target],
|
45
|
+
scope: "open_id"
|
46
|
+
}
|
47
|
+
})
|
48
|
+
response.body
|
49
|
+
end
|
50
|
+
end
|
data/lib/auth0/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auth0
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Auth0
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-07-
|
13
|
+
date: 2014-07-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: omniauth-oauth2
|