Primeauth 0.2 → 0.3
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 +11 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56abd11e0b283240aea99ac23a5e557bbe8c7775
|
4
|
+
data.tar.gz: 3ef93652a69a260aaa212979346f0d5b3f506080
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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://
|
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://
|
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.
|
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-
|
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:
|