adsk_auth_service 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/adsk_auth_service.gemspec +1 -1
- data/lib/services/auth_service.rb +6 -7
- 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: e96a5d67b65cbbc45ea74b9275a5347ebe153073
|
4
|
+
data.tar.gz: 925e22e461823f7bcb18faa6701821e016a5ebc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85358fe02a0ef537f64077c036bd7ea406febcf53c5677a3980835d0a6cf785e68dc63565a4a0da4808f7fabfc6e0d4124d2e5fdd21bfb39a7631af6cdae23a7
|
7
|
+
data.tar.gz: 49dba64082790e573d0011c879623c032612448f7e785af2001254a3b731c90d3808f026549e7e4d953c68f1e545e90ec9a1bc41f0c96fdbf49cbbbf0d2aa83c
|
data/adsk_auth_service.gemspec
CHANGED
@@ -9,13 +9,12 @@ class AuthService
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def oauth_token
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
12
|
+
ActiveSupport::JSON.decode(
|
13
|
+
NetUtil.call_webservices(@@config['url'],
|
14
|
+
'post',
|
15
|
+
"client_id=#{@@config['consumer_key']}&client_secret=#{@@config['consumer_secret']}&grant_type=client_credentials",
|
16
|
+
{ headers: {'Content-Type' => 'application/x-www-form-urlencoded'} }).body
|
17
|
+
)
|
19
18
|
end
|
20
19
|
|
21
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adsk_auth_service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Linh Chau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cache_service
|