wire4_auth 1.0.3

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 = '1.0.3'
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,42 @@
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.3'
35
+ s.add_runtime_dependency 'wire4_client', '~> 1.0', '>= 1.0.3'
36
+
37
+ s.add_development_dependency 'test-unit', '~> 3.3', '>= 3.3.5'
38
+
39
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
40
+ s.executables = []
41
+ s.require_paths = ["lib"]
42
+ end
metadata ADDED
@@ -0,0 +1,113 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wire4_auth
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Wire4
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-02-28 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.3
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.3
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: '1.0'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 1.0.3
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '1.0'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 1.0.3
53
+ - !ruby/object:Gem::Dependency
54
+ name: test-unit
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '3.3'
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 3.3.5
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '3.3'
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: 3.3.5
73
+ description: Herramienta para autenticacion de la API de Wire4
74
+ email:
75
+ - ''
76
+ executables: []
77
+ extensions: []
78
+ extra_rdoc_files: []
79
+ files:
80
+ - Gemfile
81
+ - Gemfile.lock
82
+ - lib/wire4_auth.rb
83
+ - lib/wire4_auth/auth/oauth_wire4.rb
84
+ - lib/wire4_auth/core/cached_token.rb
85
+ - lib/wire4_auth/core/environment_enum.rb
86
+ - lib/wire4_auth/testing.rb
87
+ - lib/wire4_auth/version.rb
88
+ - lib/wire4_auth/webhook_verification_signature/utils_compute.rb
89
+ - wire4_auth.gemspec
90
+ homepage: https://wire4.mx
91
+ licenses:
92
+ - Unlicense
93
+ metadata: {}
94
+ post_install_message:
95
+ rdoc_options: []
96
+ require_paths:
97
+ - lib
98
+ required_ruby_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '1.9'
103
+ required_rubygems_version: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: '0'
108
+ requirements: []
109
+ rubygems_version: 3.0.6
110
+ signing_key:
111
+ specification_version: 4
112
+ summary: Wire4Auth Ruby Gem
113
+ test_files: []