dc_tunnel 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dc_tunnel.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b3241f13bc6a182426390734778c16780d92d95c11a129a9654b01d8d78f571
|
4
|
+
data.tar.gz: a7b80e431299cb306913644b074b71a6a95fbe2436a84fa00e6edaa3516b70d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1c6c467db482c9a0ec7435f77f41f452cefa2fb117e92d8dacef9c2a5d5b5c2f50780c3a30f3d681e47a639d1d0e41cad7952d306a4d870ceeb8d007e18a4da
|
7
|
+
data.tar.gz: 239f2f7706ec87c51928bfd8a62799d4f6d514848549750227849e3846b996317a9592aedd16369d8bb2161181a500771c021e400bbe6151b929b4086dcafec1
|
data/lib/dc_tunnel.rb
CHANGED
@@ -58,6 +58,14 @@ class DcTunnel
|
|
58
58
|
self.http_get self.sso_path("/users", params)
|
59
59
|
end
|
60
60
|
|
61
|
+
def login(phone,password)
|
62
|
+
self.http_post('/users/login',{phone:phone,password:password})
|
63
|
+
end
|
64
|
+
|
65
|
+
def logout(sso_id)
|
66
|
+
self.http_post("/users/#{sso_id}/logout",{})
|
67
|
+
end
|
68
|
+
|
61
69
|
def synchronize_users
|
62
70
|
res = self.http_get self.sso_path('/users', {:system_ids => [self.get_settings[:system_id]]})
|
63
71
|
allowed_ids = []
|