Primeauth 0.1

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 +7 -0
  2. data/lib/Primeauth.rb +24 -0
  3. metadata +59 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 582d1b672175eceb5a568a2695bf3a0709a08cf9
4
+ data.tar.gz: 92098f29dff295170fe73ed829489d08afa63717
5
+ SHA512:
6
+ metadata.gz: 4744203c35ba92df226b84f14db1fb3a8d7fe13fa90bb1434e327864a5dba1bc23af3e1b4b3cc394da323ab6da28a6140f21d17f7fa56a2a5e2f6a41a2266263
7
+ data.tar.gz: 3974d9f0a23ba8e7e0c49957dd19243258a808164250fd51d887e907f7327671025827a99023a4747a2938b05b9134ed345b4a49c578cb79690f15902d3d9111
data/lib/Primeauth.rb ADDED
@@ -0,0 +1,24 @@
1
+ class Primeauth
2
+ require 'http'
3
+ def self.createAuth(email,mobile,ip,token,secret,client_id,comments)
4
+ response = HTTP.post("https://www.primeauth.com/api/v1/create/authreq.json",:form => {
5
+ :email_id => email,
6
+ :mobile => mobile,
7
+ :client_id => client_id,
8
+ :ip_addr => ip,
9
+ :token => token,
10
+ :secret => secret,
11
+ :comments => comments
12
+ })
13
+ return response.body
14
+ end
15
+
16
+ def self.checkAuth(auth_id,token,secret)
17
+ response = HTTP.post("https://www.primeauth.com/api/v1/check/id.json",:form => {
18
+ :id => auth_id,
19
+ :token => token,
20
+ :secret => secret
21
+ })
22
+ return response.body
23
+ end
24
+ end
metadata ADDED
@@ -0,0 +1,59 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: Primeauth
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.1'
5
+ platform: ruby
6
+ authors:
7
+ - P B Surya Subhash
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-05-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: http
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: Primeauth gem is used to integrate Primeauth's services. Please go to
28
+ primeauth.com for more details
29
+ email: pbssubhash@primeauth.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - lib/Primeauth.rb
35
+ homepage: http://rubygems.org/gems/primeauth
36
+ licenses:
37
+ - MIT
38
+ metadata: {}
39
+ post_install_message:
40
+ rdoc_options: []
41
+ require_paths:
42
+ - lib
43
+ required_ruby_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ required_rubygems_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ requirements: []
54
+ rubyforge_project:
55
+ rubygems_version: 2.4.6
56
+ signing_key:
57
+ specification_version: 4
58
+ summary: Primeauth - Think beyond passwords
59
+ test_files: []