omniauth-authentiq 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -40
- data/lib/omniauth/authentiq/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d152b93e57ba436e49e30fd7f431112caa8d7d00
|
4
|
+
data.tar.gz: 60a303403dbf79a815e8b4c1eb6e1ef956a2da0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 298d17713393ba75ed612351070d7a1dfeae1d525f3bce46e7196ebe7f71aac23113a6166f8a1763d61a39fa880641bc75310e5d7036318f7cfd4d98e76917af
|
7
|
+
data.tar.gz: 1accbd0efe54a26d15f5081cfce63d6cefcb0005a3f70f95529992cd2ded0c28856a1ccbf03d72588efd0a71fa83704e0bea1fc4e4e9d6929a7b940c408908f2
|
data/README.md
CHANGED
@@ -4,15 +4,15 @@ Official OmniAuth strategy for authenticating with AuthentiqID. Sign up for [Aut
|
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
Add this line to your application's Gemfile
|
7
|
+
Add this line to your application's Gemfile
|
8
8
|
|
9
9
|
```ruby
|
10
|
-
gem 'omniauth-authentiq', '~> 0.2.0'
|
10
|
+
gem 'omniauth-authentiq', '~> 0.2.0'
|
11
11
|
```
|
12
12
|
|
13
13
|
Then bundle:
|
14
14
|
|
15
|
-
$ bundle
|
15
|
+
$ bundle install
|
16
16
|
|
17
17
|
# Basic Usage
|
18
18
|
|
@@ -22,59 +22,33 @@ use OmniAuth::Builder do
|
|
22
22
|
end
|
23
23
|
```
|
24
24
|
|
25
|
+
|
25
26
|
# Scopes
|
26
27
|
|
27
|
-
Authentiq gives you the capability to request various data from the user. This is done by adding the scope parameters to the basic usage.
|
28
|
+
Authentiq gives you the capability to request various data from the user. This is done by adding the scope parameters to the basic usage.
|
29
|
+
|
30
|
+
Depending on your implementation, you may need to declare the redirect_uri parameter
|
28
31
|
|
29
32
|
```ruby
|
30
33
|
use OmniAuth::Builder do
|
31
34
|
provider :authentiq, ENV['AUTHENTIQ_KEY'], ENV['AUTHENTIQ_SECRET'],
|
32
|
-
scope: 'aq:name email~
|
33
|
-
|
34
|
-
redirect_uri: 'redirect_uri',
|
35
|
-
client_options: {
|
36
|
-
site: 'authentiq endpoint'
|
37
|
-
}
|
35
|
+
scope: 'aq:name email~rs aq:push phone address',
|
36
|
+
redirect_uri: 'redirect_uri'
|
38
37
|
end
|
39
38
|
```
|
40
39
|
|
41
40
|
Available scopes are:
|
42
|
-
|
43
41
|
- `aq:name` for Name
|
44
42
|
- `email` for Email
|
45
43
|
- `phone` for Phone
|
46
44
|
- `address` for Address
|
47
|
-
- `aq:location` for Location
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
# Gitlab installation usage
|
52
|
-
|
53
|
-
After adding the gem to your gemfile.
|
54
|
-
|
55
|
-
## Development Installation
|
56
|
-
|
57
|
-
To use the gem in a GitLab development installation enable the omniauth functionality and add the configuration to you gitlab.rb.
|
58
|
-
|
59
|
-
```yaml
|
60
|
-
- {
|
61
|
-
name: 'authentiq',
|
62
|
-
app_id: ENV['AUTHENTIQ_KEY'],
|
63
|
-
app_secret: ENV['AUTHENTIQ_SECRET'],
|
64
|
-
args: {
|
65
|
-
scope: 'aq:name email~r aq:push',
|
66
|
-
display: 'modal',
|
67
|
-
redirect_uri: '<<your_redirect_uri>>',
|
68
|
-
client_options: {
|
69
|
-
site: 'https://connect.authentiq.io/'
|
70
|
-
}
|
71
|
-
}
|
72
|
-
}
|
73
|
-
```
|
45
|
+
- `aq:location` for Location (Coordinates and geolocated address)
|
46
|
+
|
47
|
+
Append `~r` to a scope to explicitly require it from the user.
|
74
48
|
|
75
|
-
|
49
|
+
Append `~s` or `~rs` to phone or email scope to explicitly require a signed and/or verified scope from the user.
|
76
50
|
|
77
|
-
To
|
51
|
+
To enable login via Push Notifications in the Authentiq ID mobile app, add `aq:push` to the list of scopes.
|
78
52
|
|
79
53
|
## Tests
|
80
54
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-authentiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandros Keramidas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-oauth2
|