omniauth-authentiq 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 01dd2d6aff810f685097a4e2398f3eb521a94544
4
- data.tar.gz: 049a8e83bfc64a007e8f8c90006dac493243e5c6
3
+ metadata.gz: 2b117b9262c9666c13fedbbd28ff288c21e9888a
4
+ data.tar.gz: baa4362bbafbf62e43805aed41c17cdacbd9b671
5
5
  SHA512:
6
- metadata.gz: 0493385606adb0846ae6cce9ba032f6e08c65280fe45b0ef324df171e92e33bb7ce28a86634559976e95fd852eed47d2f4a0ad10ed0ad8e9bc4a04f696f507b0
7
- data.tar.gz: 9a2d139c52e9acc8748b4fe3ebaff0ace39a3ce2a629f5e83a1895bfe4236da0aa01a9f0e016ca41b3de73119dd5cae153cf72ba98c94ed100471ec41b97dca2
6
+ metadata.gz: 0e4a159d773c3004297f5d7d503657c551a3a619cd690514245aa9a1dec5cfae0436f1bb980989fb568f4936d8bcb16d9bb4a4b4830932edd9db80cd3f85afa3
7
+ data.tar.gz: f8164120ac7556274a5e3f52fc7e7ca15733c1232154ef7a7097222bfa136650f56ef4db45f705a31684cb1a3f94519b11cab57a4c56726405f18d655d3a43ec
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Official [OmniAuth](https://github.com/omniauth/omniauth/wiki) strategy for authenticating with an Authentiq ID mobile app ([iOS](https://itunes.apple.com/us/app/authentiq-id/id964932341), [Android](https://play.google.com/store/apps/details?id=com.authentiq.authentiqid)).
4
4
 
5
- Application credentials (YOUR_CLIENT_ID and YOUR_CLIENT_SECRET below) can be obtained [at Authentiq](https://www.authentiq.com/register/?utm_source=github&utm_medium=readme&utm_campaign=omniauth).
5
+ Application credentials (YOUR_CLIENT_ID and YOUR_CLIENT_SECRET below) can be obtained [at Authentiq](https://www.authentiq.com/developers/?utm_source=github&utm_medium=readme&utm_campaign=omniauth-authentiq).
6
6
 
7
7
  ## Installation
8
8
 
@@ -25,11 +25,11 @@ use OmniAuth::Builder do
25
25
  end
26
26
  ```
27
27
 
28
- You can read the wiki for more extensive infomation on how to use the Authentiq Omniauth strategy for your rails application
28
+ You can read the wiki for more extensive information on how to use the Authentiq Omniauth strategy for your rails application
29
29
 
30
30
  * [Homepage](https://github.com/AuthentiqID/omniauth-authentiq/wiki)
31
31
  * [Installation and basic usage](https://github.com/AuthentiqID/omniauth-authentiq/wiki/Installation-and-basic-usage)
32
- * [Scopes, redirect uri configuration and response data](https://github.com/AuthentiqID/omniauth-authentiq/wiki/Scopes,-redirect-URI-configuration-and-responses)
32
+ * [Scopes, redirect uri configuration and response data](https://github.com/AuthentiqID/omniauth-authentiq/wiki/Scopes,-callback-url-configuration-and-responses)
33
33
  * [Remote Logout (Backchannel-logout)](https://github.com/AuthentiqID/omniauth-authentiq/wiki/Remote-logout)
34
34
 
35
35
  ## Tests
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Authentiq
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
@@ -1,5 +1,7 @@
1
+ require 'jwt'
1
2
  require 'omniauth-oauth2'
2
3
  require_relative 'helpers/helpers'
4
+
3
5
  module OmniAuth
4
6
  module Strategies
5
7
  class Authentiq < OmniAuth::Strategies::OAuth2
@@ -71,15 +73,15 @@ module OmniAuth
71
73
 
72
74
  def decode_idtoken(idtoken)
73
75
  (JWT.decode idtoken, @options.client_secret, true, {
74
- :algorithm => helpers.algorithm(@options),
75
- :iss => @options.client_options.site,
76
- :verify_iss => true,
77
- :aud => @options.client_id,
78
- :verify_aud => true,
79
- :verify_iat => true,
80
- :verify_jti => false,
81
- :verify_sub => true,
82
- :leeway => 60
76
+ algorithm: helpers.algorithm(@options),
77
+ iss: @options.client_options.site,
78
+ verify_iss: true,
79
+ aud: @options.client_id,
80
+ verify_aud: true,
81
+ verify_iat: true,
82
+ verify_jti: false,
83
+ verify_sub: true,
84
+ leeway: 60
83
85
  })[0]
84
86
  end
85
87
 
@@ -102,4 +104,4 @@ module OmniAuth
102
104
  end
103
105
  end
104
106
  end
105
- end
107
+ end
@@ -1,3 +1,4 @@
1
+ require 'jwt'
1
2
  require_relative '../helpers/helpers'
2
3
 
3
4
  module OmniAuth
@@ -101,4 +102,4 @@ module OmniAuth
101
102
  end
102
103
  end
103
104
  end
104
- end
105
+ end
@@ -19,5 +19,6 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.3', '>= 1.3.1'
22
+ spec.add_runtime_dependency 'jwt', '>= 1.5'
23
+ spec.add_runtime_dependency 'omniauth-oauth2', '>= 1.5'
23
24
  end
metadata CHANGED
@@ -1,35 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-authentiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandros Keramidas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-29 00:00:00.000000000 Z
11
+ date: 2018-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: omniauth-oauth2
14
+ name: jwt
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.3'
20
17
  - - ">="
21
18
  - !ruby/object:Gem::Version
22
- version: 1.3.1
19
+ version: '1.5'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - "~>"
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: '1.3'
26
+ version: '1.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: omniauth-oauth2
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '1.5'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
30
38
  - - ">="
31
39
  - !ruby/object:Gem::Version
32
- version: 1.3.1
40
+ version: '1.5'
33
41
  description: Strategy to enable passwordless authentication in OmniAuth via Authentiq.
34
42
  email:
35
43
  - alex@authentiq.com
@@ -71,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
79
  version: '0'
72
80
  requirements: []
73
81
  rubyforge_project:
74
- rubygems_version: 2.5.1
82
+ rubygems_version: 2.5.2.3
75
83
  signing_key:
76
84
  specification_version: 4
77
85
  summary: Authentiq strategy for OmniAuth