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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b28a91a7f6540ec06b1051da196b6413763ce990
4
- data.tar.gz: 1d1830421c3acada67bf619a31150ce43b9f7fe6
3
+ metadata.gz: d152b93e57ba436e49e30fd7f431112caa8d7d00
4
+ data.tar.gz: 60a303403dbf79a815e8b4c1eb6e1ef956a2da0c
5
5
  SHA512:
6
- metadata.gz: cc16ad25d149ec3a1da94b0997f5db6186f1e5479f18c9febf586ada508c3d5ff87e1181909f4f67f1267201eeb5a59e1e32849d7136da7dbecef99a6d64ca9c
7
- data.tar.gz: 963a03d4e6aff5d669c79da74c8c3d46a49dd27ab24c7c861fa8199a609df1119712c17977ed5e0243022020397c4c51fd175ef627cc6dcfbcbbb1c9d7640c98
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 (local path for now as it is not on rubygems repo):
7
+ Add this line to your application's Gemfile
8
8
 
9
9
  ```ruby
10
- gem 'omniauth-authentiq', '~> 0.2.0', :git => 'https://gitlab.com/authentiq/omniauth-authentiq.git'
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. If not added, the default scopes are Name, Email and Phone. Other available options are display and redirect uri. Also you can configure the endpoint the gem uses
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~r aq:push',
33
- display: 'modal',
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
- - `aq:push`
49
- - `aq:link`
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
- ## Omnibus Installation
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 use the gem in a GitLab Omnibus installation follow this link for general omniauth instructions http://docs.gitlab.com/ce/integration/omniauth.html
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
 
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Authentiq
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
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.0
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 00:00:00.000000000 Z
11
+ date: 2016-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2