Primeauth 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/Primeauth.rb +25 -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: 740e2044184bf4720edb585d16f73540ba3d023d
|
4
|
+
data.tar.gz: 228d72c22b989bdbb835c8c57d75879a10c2ae35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e95d82715f17374b92f85ed2c30c57e04dd180c9a89591e75e8cd3e6ecc65cde5063569f73c5bf77cc8cde344757c89bec5128aedb77db04e05e308b7d53e722
|
7
|
+
data.tar.gz: d7ec7242eecea4cbc438c3240d432036dc56458c46759f80608703b3f6d0c28cb6fd072dae80cdab739deb0a795046df69b7333146628f931862610b3dbc75b6
|
data/lib/Primeauth.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
class Primeauth
|
2
2
|
require 'http'
|
3
3
|
def self.createAuth(email,mobile,ip,token,secret,client_id,comments)
|
4
|
-
response = HTTP.post("https://
|
4
|
+
response = HTTP.post("https://api.primeauth.com/api/v1/create/authreq.json",:form => {
|
5
5
|
:email_id => email,
|
6
6
|
:mobile => mobile,
|
7
7
|
:client_id => client_id,
|
@@ -12,6 +12,20 @@ class Primeauth
|
|
12
12
|
})
|
13
13
|
return response.body
|
14
14
|
end
|
15
|
+
def self.createWhiteLabelAuth(email,mobile,ip,token,secret,client_id,comments,whitelabel_token,whitelabel_secret)
|
16
|
+
response = HTTP.post("https://api.primeauth.com/api/v1/create/authreq.json",:form => {
|
17
|
+
:email_id => email,
|
18
|
+
:mobile => mobile,
|
19
|
+
:client_id => client_id,
|
20
|
+
:ip_addr => ip,
|
21
|
+
:token => token,
|
22
|
+
:secret => secret,
|
23
|
+
:comments => comments,
|
24
|
+
:whitelabel_token => whitelabel_token,
|
25
|
+
:whitelabel_secret => whitelabel_secret
|
26
|
+
})
|
27
|
+
return response.body
|
28
|
+
end
|
15
29
|
|
16
30
|
def self.checkAuth(auth_id,token,secret)
|
17
31
|
response = HTTP.post("https://www.primeauth.com/api/v1/check/id.json",:form => {
|
@@ -21,4 +35,14 @@ class Primeauth
|
|
21
35
|
})
|
22
36
|
return response.body
|
23
37
|
end
|
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 => {
|
40
|
+
:id => auth_id,
|
41
|
+
:token => token,
|
42
|
+
:secret => secret,
|
43
|
+
:whitelabel_token => whitelabel_token,
|
44
|
+
:whitelabel_secret => whitelabel_secret
|
45
|
+
})
|
46
|
+
return response.body
|
47
|
+
end
|
24
48
|
end
|