omniauth-onvedeo 1.0.0 → 1.1.0
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +25 -7
- data/lib/omniauth-onvedeo/version.rb +1 -1
- data/lib/omniauth/strategies/onvedeo.rb +6 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0c2a5fe96a458469a2121a49eb1835e875f8f344
|
|
4
|
+
data.tar.gz: 285c8af3e804b380b1a5b8f19a6986bc47d5a12d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2435886b866899230c8734b2baf850d452dfdf31c7aa1eae4e316fc4e79a8f805b618f957446a4e232b4205472aa0713806178b14728502bcdcadf806d24c99b
|
|
7
|
+
data.tar.gz: ff603368e995fa6f02f68672df6ad2f17a58d83d0736a21624f93c7bd178832dca7e65c77f2043e86115d2eaf89779d5a2771b5e484deba9e561e042b45f494c
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
# Omniauth::Onvedeo
|
|
2
|
+
[](http://badge.fury.io/rb/omniauth-onvedeo)
|
|
3
|
+
[](https://travis-ci.org/onvedeo/omniauth-onvedeo)
|
|
4
|
+
[](https://gemnasium.com/onvedeo/omniauth-onvedeo)
|
|
5
|
+
[](https://codeclimate.com/github/onvedeo/omniauth-onvedeo)
|
|
6
|
+
[](https://coveralls.io/github/onvedeo/omniauth-onvedeo?branch=master)
|
|
2
7
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
|
8
|
+
Provides the Onvedeo strategy for OmniAuth.
|
|
6
9
|
|
|
7
10
|
## Installation
|
|
8
11
|
|
|
@@ -20,9 +23,24 @@ Or install it yourself as:
|
|
|
20
23
|
|
|
21
24
|
$ gem install omniauth-onvedeo
|
|
22
25
|
|
|
23
|
-
##
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
## Authentication Hash
|
|
27
|
+
|
|
28
|
+
An example auth hash available in `request.env['omniauth.auth']`:
|
|
29
|
+
```rb
|
|
30
|
+
{
|
|
31
|
+
provider: 'onvedeo',
|
|
32
|
+
uid: 123456,
|
|
33
|
+
info: {
|
|
34
|
+
email: 'email@onvedeo.com',
|
|
35
|
+
name: 'John Doe',
|
|
36
|
+
first_name: 'John',
|
|
37
|
+
last_name: 'Doe',
|
|
38
|
+
role: 'user',
|
|
39
|
+
image: 'http://www.onvedeo.com/image.url',
|
|
40
|
+
description: 'User description'
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
```
|
|
26
44
|
|
|
27
45
|
## Development
|
|
28
46
|
|
|
@@ -32,7 +50,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
32
50
|
|
|
33
51
|
## Contributing
|
|
34
52
|
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
53
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/onvedeo/omniauth-onvedeo.
|
|
36
54
|
|
|
37
55
|
|
|
38
56
|
## License
|
|
@@ -19,8 +19,13 @@ module OmniAuth
|
|
|
19
19
|
first_name: raw_info['first_name'],
|
|
20
20
|
last_name: raw_info['last_name'],
|
|
21
21
|
role: raw_info['role'],
|
|
22
|
+
phone: raw_info['phone'],
|
|
22
23
|
image: raw_info['image'],
|
|
23
|
-
|
|
24
|
+
company_logo: raw_info['company_logo'],
|
|
25
|
+
company_name: raw_info['company_name'],
|
|
26
|
+
description: raw_info['description'],
|
|
27
|
+
bre_number: raw_info['bre_number'],
|
|
28
|
+
mls_agent_id: raw_info['mls_agent_id']
|
|
24
29
|
}
|
|
25
30
|
end
|
|
26
31
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-onvedeo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Evan Lok
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-10-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -104,6 +104,7 @@ files:
|
|
|
104
104
|
- ".gitignore"
|
|
105
105
|
- ".rspec"
|
|
106
106
|
- ".travis.yml"
|
|
107
|
+
- CHANGELOG.md
|
|
107
108
|
- Gemfile
|
|
108
109
|
- LICENSE.txt
|
|
109
110
|
- README.md
|