Primeauth 0.2 → 0.3

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/Primeauth.rb +11 -2
  3. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 740e2044184bf4720edb585d16f73540ba3d023d
4
- data.tar.gz: 228d72c22b989bdbb835c8c57d75879a10c2ae35
3
+ metadata.gz: 56abd11e0b283240aea99ac23a5e557bbe8c7775
4
+ data.tar.gz: 3ef93652a69a260aaa212979346f0d5b3f506080
5
5
  SHA512:
6
- metadata.gz: e95d82715f17374b92f85ed2c30c57e04dd180c9a89591e75e8cd3e6ecc65cde5063569f73c5bf77cc8cde344757c89bec5128aedb77db04e05e308b7d53e722
7
- data.tar.gz: d7ec7242eecea4cbc438c3240d432036dc56458c46759f80608703b3f6d0c28cb6fd072dae80cdab739deb0a795046df69b7333146628f931862610b3dbc75b6
6
+ metadata.gz: 4263d5ba399d3a25b0866c19bb288dbc2d3291f856bb21e6ed94dd9dbe0d8f9d7337c6e494f8f0add769148a7da82d5fc6b991743ecdd4577a7744aeefc73f6b
7
+ data.tar.gz: f85ba2016a843c7c5585cb91fb19dc5cec2d0e633ad0d053a0df34ddec23d6c461c4604ac4c9f738c9509734b2c5c002d39d9d62bdb43e7102ceeec61b8d75a9
data/lib/Primeauth.rb CHANGED
@@ -28,7 +28,7 @@ class Primeauth
28
28
  end
29
29
 
30
30
  def self.checkAuth(auth_id,token,secret)
31
- response = HTTP.post("https://www.primeauth.com/api/v1/check/id.json",:form => {
31
+ response = HTTP.post("https://api.primeauth.com/api/v1/check/id.json",:form => {
32
32
  :id => auth_id,
33
33
  :token => token,
34
34
  :secret => secret
@@ -36,7 +36,7 @@ class Primeauth
36
36
  return response.body
37
37
  end
38
38
  def self.checkWhiteLabelAuth(auth_id,token,secret,whitelabel_token,whitelabel_secret)
39
- response = HTTP.post("https://www.primeauth.com/api/v1/check/id.json",:form => {
39
+ response = HTTP.post("https://api.primeauth.com/api/v1/check/id.json",:form => {
40
40
  :id => auth_id,
41
41
  :token => token,
42
42
  :secret => secret,
@@ -45,4 +45,13 @@ class Primeauth
45
45
  })
46
46
  return response.body
47
47
  end
48
+ def self.sendMagicLink(email,token,secret,client_id)
49
+ response = HTTP.post("https://api.primeauth.com/api/v1/mls/create.json",:form => {
50
+ :client_id => client_id,
51
+ :token => token,
52
+ :secret => secret,
53
+ :email => email
54
+ })
55
+ return response.body
56
+ end
48
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Primeauth
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: '0.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - P B Surya Subhash
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-14 00:00:00.000000000 Z
11
+ date: 2016-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -57,3 +57,4 @@ signing_key:
57
57
  specification_version: 4
58
58
  summary: Primeauth - Think beyond passwords
59
59
  test_files: []
60
+ has_rdoc: