omniauth-passport 0.0.1 → 0.0.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.
- data/README.md +3 -3
- data/lib/omniauth/strategies/passport.rb +1 -1
- data/lib/omniauth-passport/version.rb +1 -1
- data/omniauth-passport.gemspec +1 -1
- metadata +5 -5
data/README.md
CHANGED
@@ -4,7 +4,7 @@ This gem contains the Everyday Hero Passport strategy for OmniAuth.
|
|
4
4
|
|
5
5
|
## Experimental
|
6
6
|
|
7
|
-
This gem will only work if you have a copy of our OAuth2 server running locally on http://passport.edh.dev which
|
7
|
+
This gem will only work if you have a copy of our OAuth2 server running locally on http://passport.edh.dev which you don't. Once we sort out the URL structure I will make a 1.0.0 release.
|
8
8
|
|
9
9
|
## How To Use It
|
10
10
|
|
@@ -20,6 +20,6 @@ After adding the gem you will need to `bundle install` and create `config/initia
|
|
20
20
|
|
21
21
|
The typical convention for key / secret pairs is storing them in an environment variable. Lots of tools (e.g. POW and Procfile) will source an environment file before loading which is a great place to put the environment variables.
|
22
22
|
|
23
|
-
Currently we are returning the
|
23
|
+
Currently we are returning the user's `name`, `email` and `uid`.
|
24
24
|
|
25
|
-
For more information on hooking up omniauth
|
25
|
+
For more information on hooking up omniauth check out the README at: https://github.com/intridea/omniauth
|
@@ -4,7 +4,7 @@ module OmniAuth
|
|
4
4
|
module Strategies
|
5
5
|
class Passport < OmniAuth::Strategies::OAuth2
|
6
6
|
option :name, 'passport'
|
7
|
-
option :client_options, {:site => 'http://
|
7
|
+
option :client_options, {:site => 'http://114.141.198.124:3000'}
|
8
8
|
|
9
9
|
uid { raw_info['id'] }
|
10
10
|
|
data/omniauth-passport.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
|
|
6
6
|
gem.email = ["timc@everydayhero.com.au"]
|
7
7
|
gem.description = %q{OmniAuth strategy for Everyday Hero's Passport}
|
8
8
|
gem.summary = %q{OmniAuth strategy for Everyday Hero's Passport}
|
9
|
-
gem.homepage = ""
|
9
|
+
gem.homepage = "http://everydayhero.github.com/omniauth-passport"
|
10
10
|
|
11
11
|
gem.files = `git ls-files`.split($\)
|
12
12
|
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-passport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth-oauth2
|
16
|
-
requirement: &
|
16
|
+
requirement: &70099454344320 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 1.0.2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70099454344320
|
25
25
|
description: OmniAuth strategy for Everyday Hero's Passport
|
26
26
|
email:
|
27
27
|
- timc@everydayhero.com.au
|
@@ -38,7 +38,7 @@ files:
|
|
38
38
|
- lib/omniauth-passport/version.rb
|
39
39
|
- lib/omniauth/strategies/passport.rb
|
40
40
|
- omniauth-passport.gemspec
|
41
|
-
homepage:
|
41
|
+
homepage: http://everydayhero.github.com/omniauth-passport
|
42
42
|
licenses: []
|
43
43
|
post_install_message:
|
44
44
|
rdoc_options: []
|