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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76a014903877f7fce217221a4b6f2c68b86a55ef
4
- data.tar.gz: 332cdab168e740408199f4e0efc33b57d76f54da
3
+ metadata.gz: 94757c97356e3c413b5ee95ea59c6d1ecbbae9b4
4
+ data.tar.gz: f5f2e8cc365840a744e103526e0788759a4bc174
5
5
  SHA512:
6
- metadata.gz: 79e439d92ffcbf5ef001b8baa3aa533c743e1f8b334e7961c195a1818b09574b1216b02318b0c67b7b3f9b70184f147eb0d84f5a0f7e161184ccf22c56ce3ff2
7
- data.tar.gz: 3bbab499f12c583e189468572893cfd6d17e8da7d2f21921ebb2b7faf0c26853bdb6a62a0d9acdb5ec151101cb9b6b87c5cf527e64a49eac6b2bcf13a6a7e071
6
+ metadata.gz: def29cb30304051a79583248f5bef3439058e51e288e1429106f6bcd11317fa3733d0b3060ec6c81e8fc9a2997c4923c0e46e49ab50e9ec4dbff80f00b72b174
7
+ data.tar.gz: 8bb427b2ab107e0bebd2aef5b4325e3784bf2bcf42be7bee423e1eba7f9b6e0533ad274dfb9bab869198419dd97be2a34d0b13c9e73fe96be4512bff3006cc0b
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  .ruby-version
2
2
  coverage
3
3
  Gemfile.lock
4
- *.gem
4
+ *.gem
5
+ examples
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 gibbon
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.
@@ -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
- end
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
@@ -1,3 +1,3 @@
1
1
  module Auth0
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
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.0
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-07 00:00:00.000000000 Z
13
+ date: 2014-07-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: omniauth-oauth2