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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dc_tunnel.rb +8 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: befe1055816644ed0dafc39a71fafc444e4bd1bc364f131cd3931e26ec111060
4
- data.tar.gz: 3e205a66126584c486e7fe84b968178e0725394768a46452c2d3617187b8e177
3
+ metadata.gz: 0b3241f13bc6a182426390734778c16780d92d95c11a129a9654b01d8d78f571
4
+ data.tar.gz: a7b80e431299cb306913644b074b71a6a95fbe2436a84fa00e6edaa3516b70d0
5
5
  SHA512:
6
- metadata.gz: f2c2953eb4da4e04bba6bc298e1cfcce34586cf73fe37f69ba39048652cff1a007dfb92582345fd5da9fbb11d3911a706d1e24009e9a99f33b9115e9ed29dfc4
7
- data.tar.gz: d248e54c3fe8eeedf2fc224cdda17336cdc028f6e9d2ac2c1384c56935e708b9b5ab7d0684d2d6e9c464f93cb564a464ee2255f5322237d810d7e2098b4b3293
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 = []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dc_tunnel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Qxchen