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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2b117b9262c9666c13fedbbd28ff288c21e9888a
|
|
4
|
+
data.tar.gz: baa4362bbafbf62e43805aed41c17cdacbd9b671
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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/
|
|
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
|
|
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,-
|
|
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,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
|
-
:
|
|
75
|
-
:
|
|
76
|
-
:
|
|
77
|
-
:
|
|
78
|
-
:
|
|
79
|
-
:
|
|
80
|
-
:
|
|
81
|
-
:
|
|
82
|
-
:
|
|
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
|
data/omniauth-authentiq.gemspec
CHANGED
|
@@ -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 '
|
|
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.
|
|
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:
|
|
11
|
+
date: 2018-05-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
82
|
+
rubygems_version: 2.5.2.3
|
|
75
83
|
signing_key:
|
|
76
84
|
specification_version: 4
|
|
77
85
|
summary: Authentiq strategy for OmniAuth
|