omniauth-centralid 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -5
- data/Rakefile +0 -4
- data/lib/omniauth/strategies/centralid.rb +6 -4
- data/lib/omniauth-centralid/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00410bce173f0e5725d249bfc2fecdf6336eb78c
|
4
|
+
data.tar.gz: d4b2050032901952bde1f02978862ea0d3fbd287
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9529e1e2d89ba4f5a9e70c0fc4a038d7cac7f888363a074d55d44d14c3f2c0a4e3997c2b1600b0e96ea7f73b56f0366b9025c6ff5ba0818791f0aeff0a859d03
|
7
|
+
data.tar.gz: 7ab85f489f4977912291f47c2b079ecef0c3272ca84627c931f55dc0ddc28215d7eb9327b58dc03c4cbc5ea6427c9205db8c3cd659ef52d16e11535fabb71d26
|
data/README.md
CHANGED
@@ -1,18 +1,19 @@
|
|
1
1
|
# OmniAuth Central ID
|
2
|
+
[![Build Status](https://semaphoreapp.com/api/v1/projects/a1479ff0-5ef6-4182-9577-116a668c090c/309883/badge.png)](https://semaphoreapp.com/olimart/omniauth-centralid)
|
2
3
|
|
3
|
-
This gem
|
4
|
+
This gem offers OmniAuth strategy for Central ID service.
|
4
5
|
|
5
6
|
## Usage
|
6
7
|
|
7
8
|
First start by adding this gem to your Gemfile:
|
8
9
|
|
9
|
-
```
|
10
|
+
```ruby
|
10
11
|
gem 'omniauth-centralid'
|
11
12
|
```
|
12
13
|
|
13
|
-
Next, tell OmniAuth about this provider.
|
14
|
+
Next, tell OmniAuth about this provider. In a Rails app, create an initializer for instance `config/initializers/omniauth.rb` with:
|
14
15
|
|
15
|
-
```
|
16
|
+
```ruby
|
16
17
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
17
18
|
provider :centralid, "API_KEY", "API_SECRET"
|
18
19
|
end
|
@@ -20,6 +21,10 @@ end
|
|
20
21
|
|
21
22
|
Replace "API_KEY" and "API_SECRET" with the appropriate values created earlier.
|
22
23
|
|
24
|
+
## Contributing
|
25
|
+
|
26
|
+
Run tests with `rake test`
|
27
|
+
|
23
28
|
## License
|
24
29
|
|
25
30
|
Copyright (c) 2014 by yafoy
|
@@ -28,4 +33,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
28
33
|
|
29
34
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
30
35
|
|
31
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
36
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
CHANGED
@@ -14,9 +14,6 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|
14
14
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
15
|
end
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
17
|
Bundler::GemHelper.install_tasks
|
21
18
|
|
22
19
|
require 'rake/testtask'
|
@@ -28,5 +25,4 @@ Rake::TestTask.new(:test) do |t|
|
|
28
25
|
t.verbose = false
|
29
26
|
end
|
30
27
|
|
31
|
-
|
32
28
|
task default: :test
|
@@ -18,9 +18,11 @@ module OmniAuth
|
|
18
18
|
end
|
19
19
|
|
20
20
|
info do
|
21
|
-
{
|
22
|
-
|
23
|
-
|
21
|
+
{
|
22
|
+
name: raw_info['full_name'],
|
23
|
+
email: raw_info['email'],
|
24
|
+
username: raw_info['username']
|
25
|
+
}
|
24
26
|
end
|
25
27
|
|
26
28
|
def raw_info
|
@@ -28,4 +30,4 @@ module OmniAuth
|
|
28
30
|
end
|
29
31
|
end
|
30
32
|
end
|
31
|
-
end
|
33
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-centralid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yafoy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -16,34 +16,34 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.12.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.12.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: omniauth-oauth2
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.4.0
|
34
34
|
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 1.
|
36
|
+
version: 1.4.0
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
41
|
- - "~>"
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 1.
|
43
|
+
version: 1.4.0
|
44
44
|
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 1.
|
46
|
+
version: 1.4.0
|
47
47
|
description: This gem contains the Central ID strategy for OmniAuth
|
48
48
|
email:
|
49
49
|
- contact@yafoy.com
|
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
79
|
version: '0'
|
80
80
|
requirements: []
|
81
81
|
rubyforge_project:
|
82
|
-
rubygems_version: 2.
|
82
|
+
rubygems_version: 2.6.11
|
83
83
|
signing_key:
|
84
84
|
specification_version: 4
|
85
85
|
summary: Central ID stategy for OmniAuth
|