boxr 0.22.0 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/boxr/auth.rb +2 -2
- data/lib/boxr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12a683d59b2a28f2bead44733b4a39834be418a4
|
4
|
+
data.tar.gz: cdf7ab395940d8713a847ae5e115d01d28cb0fab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b77316e7581e836e65f478d454c22dd06edc528a12fef55313e3e9fa051eb2e8ac6550265d3e9dbc2b45245751301f25dafa9c34c1ca3b1cc35bc9471bab8dab
|
7
|
+
data.tar.gz: 6c37b203431428cf062d6c09d4cf4d431bf1fa284ce8107a08d96d8351d7b3c7f894ab1b22fd38031ea72185f25bad86c8aa88620578971ecdbfa38bf61aaeb4
|
data/lib/boxr/auth.rb
CHANGED
@@ -24,11 +24,11 @@ module Boxr
|
|
24
24
|
auth_post(uri, body)
|
25
25
|
end
|
26
26
|
|
27
|
-
def self.get_enterprise_token(private_key, enterprise_id
|
27
|
+
def self.get_enterprise_token(private_key, enterprise_id: ENV['BOX_ENTERPRISE_ID'], client_id: ENV['BOX_CLIENT_ID'])
|
28
28
|
jwt_auth_post(private_key, client_id, enterprise_id, "enterprise")
|
29
29
|
end
|
30
30
|
|
31
|
-
def self.get_user_token(private_key, user_id, client_id
|
31
|
+
def self.get_user_token(private_key, user_id, client_id: ENV['BOX_CLIENT_ID'])
|
32
32
|
jwt_auth_post(private_key, client_id, user_id, "user")
|
33
33
|
end
|
34
34
|
|
data/lib/boxr/version.rb
CHANGED