wire4_auth 0.0.3.pre.SNAPSHOT

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,19 @@
1
+ # COPYRIGHT © 2017. TCPIP.
2
+ # PATENT PENDING. ALL RIGHTS RESERVED.
3
+ # SPEI GATEWAY IS REGISTERED TRADEMARKS OF TCPIP.
4
+ #
5
+ # This software is confidential and proprietary information of TCPIP.
6
+ # You shall not disclose such Confidential Information and shall use it only
7
+ # in accordance with the company policy.
8
+
9
+ =begin
10
+ #Wire4Auth
11
+
12
+ Fecha de creación: 11 de diciembre, 2019
13
+ author: Saintiago García
14
+ version: 1.0
15
+ =end
16
+
17
+ module Wire4Auth
18
+ VERSION = '0.0.3-SNAPSHOT'
19
+ end
@@ -0,0 +1,28 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ # COPYRIGHT © 2017. TCPIP.
4
+ # PATENT PENDING. ALL RIGHTS RESERVED.
5
+ # SPEI GATEWAY IS REGISTERED TRADEMARKS OF TCPIP.
6
+ #
7
+ # This software is confidential and proprietary information of TCPIP.
8
+ # You shall not disclose such Confidential Information and shall use it only
9
+ # in accordance with the company policy.
10
+
11
+ =begin
12
+ #Wire4Auth
13
+
14
+ Fecha de creación: 13 de diciembre, 2019
15
+ author: Saintiago García
16
+ version: 1.0
17
+ =end
18
+
19
+ module Wire4Auth
20
+ class UtilsCompute
21
+ def self.compare_webhook_msg_signatures(message, key, header_signature)
22
+ digest = OpenSSL::Digest.new('sha512')
23
+ signature = OpenSSL::HMAC.hexdigest(digest, key, message)
24
+
25
+ header_signature == signature
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,40 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ # COPYRIGHT © 2017. TCPIP.
4
+ # PATENT PENDING. ALL RIGHTS RESERVED.
5
+ # SPEI GATEWAY IS REGISTERED TRADEMARKS OF TCPIP.
6
+ #
7
+ # This software is confidential and proprietary information of TCPIP.
8
+ # You shall not disclose such Confidential Information and shall use it only
9
+ # in accordance with the company policy.
10
+
11
+ =begin
12
+ #Wire4Auth
13
+
14
+ Fecha de creación: 11 de diciembre, 2019
15
+ author: Saintiago García
16
+ version: 1.0
17
+ =end
18
+
19
+ $:.push File.expand_path("../lib", __FILE__)
20
+ require "wire4_auth/version"
21
+
22
+ Gem::Specification.new do |s|
23
+ s.name = "wire4_auth"
24
+ s.version = Wire4Auth::VERSION
25
+ s.platform = Gem::Platform::RUBY
26
+ s.authors = ["Wire4"]
27
+ s.email = [""]
28
+ s.homepage = "https://wire4.mx"
29
+ s.summary = "Wire4Auth Ruby Gem"
30
+ s.description = "Herramienta para autenticacion de la API de Wire4"
31
+ s.license = "Unlicense"
32
+ s.required_ruby_version = ">= 1.9"
33
+
34
+ s.add_runtime_dependency 'oauth2', '~> 1.4', '>= 1.4.2'
35
+ s.add_runtime_dependency 'wire4_client', '~> 0.0.1.pre.SNAPSHOT', '>= 0.0.1.pre.SNAPSHOT'
36
+
37
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
38
+ s.executables = []
39
+ s.require_paths = ["lib"]
40
+ end
metadata ADDED
@@ -0,0 +1,93 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wire4_auth
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3.pre.SNAPSHOT
5
+ platform: ruby
6
+ authors:
7
+ - Wire4
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-12-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: oauth2
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.4'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.4.2
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.4'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.4.2
33
+ - !ruby/object:Gem::Dependency
34
+ name: wire4_client
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: 0.0.1.pre.SNAPSHOT
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 0.0.1.pre.SNAPSHOT
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: 0.0.1.pre.SNAPSHOT
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 0.0.1.pre.SNAPSHOT
53
+ description: Herramienta para autenticacion de la API de Wire4
54
+ email:
55
+ - ''
56
+ executables: []
57
+ extensions: []
58
+ extra_rdoc_files: []
59
+ files:
60
+ - Gemfile
61
+ - Gemfile.lock
62
+ - lib/wire4_auth.rb
63
+ - lib/wire4_auth/auth/oauth_wire4.rb
64
+ - lib/wire4_auth/core/cached_token.rb
65
+ - lib/wire4_auth/core/environment_enum.rb
66
+ - lib/wire4_auth/testing.rb
67
+ - lib/wire4_auth/version.rb
68
+ - lib/wire4_auth/webhook_verification_signature/utils_compute.rb
69
+ - wire4_auth.gemspec
70
+ homepage: https://wire4.mx
71
+ licenses:
72
+ - Unlicense
73
+ metadata: {}
74
+ post_install_message:
75
+ rdoc_options: []
76
+ require_paths:
77
+ - lib
78
+ required_ruby_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '1.9'
83
+ required_rubygems_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">"
86
+ - !ruby/object:Gem::Version
87
+ version: 1.3.1
88
+ requirements: []
89
+ rubygems_version: 3.1.1
90
+ signing_key:
91
+ specification_version: 4
92
+ summary: Wire4Auth Ruby Gem
93
+ test_files: []