omniauth-nuwe 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/README.md +2 -2
- data/example/Gemfile.lock +1 -1
- data/lib/omniauth-nuwe/version.rb +1 -1
- data/lib/omniauth/strategies/nuwe.rb +3 -3
- data/spec/omniauth/strategies/nuwe_spec.rb +2 -2
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 425b40dcef2ecd0e60de1fd153d3cf99a1bf0450
|
4
|
+
data.tar.gz: 1a0aac953771b5665797852bb5bae1091057f224
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 663b551c592eccb175248c3985b6571427418d720e4825a81cc8b0bcdede9d1ba1790a3b9fb818a236bef426dacdc0db442508b42feebce55265f0e3efb28b5f
|
7
|
+
data.tar.gz: 99949de0cd7ca6a14626fe86c19e23b5eefd5cb425dce7da5f61b86cfb83470fbc77bc03380108514a9ef341321c07fdbcf21b04b770b13d268dc69ccfd2760a
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.1.4
|
data/README.md
CHANGED
@@ -19,7 +19,7 @@ Then `bundle install`.
|
|
19
19
|
|
20
20
|
`OmniAuth::Strategies::Nuwe` is simply a Rack middleware. Read the OmniAuth docs for detailed instructions: https://github.com/intridea/omniauth.
|
21
21
|
|
22
|
-
Nuwe uses the Doorkeeper gem to use NuAPI as an OAuth2 provider. This is necessary to gain access to the V3 endpoints of this API. Developers can sign up for a developer account at https://
|
22
|
+
Nuwe uses the Doorkeeper gem to use NuAPI as an OAuth2 provider. This is necessary to gain access to the V3 endpoints of this API. Developers can sign up for a developer account at https://developer.nuwe.co.
|
23
23
|
|
24
24
|
Here's a quick example, adding the middleware to a Rails app in `config/initializers/omniauth.rb`:
|
25
25
|
|
@@ -37,6 +37,6 @@ You can now access the OmniAuth Nuwe OAuth2 URL: `/auth/nuwe`.
|
|
37
37
|
2. `bundle install`
|
38
38
|
3. `cd example`
|
39
39
|
4. Set ENV variables for APPLICATION_ID and CLIENT_SECRET
|
40
|
-
5. Set callback URI to `http://localhost:9292/auth/nuwe/callback` in your developer account at https://
|
40
|
+
5. Set callback URI to `http://localhost:9292/auth/nuwe/callback` in your developer account at https://developer.nuwe.co.
|
41
41
|
6. `bundle exec rackup`
|
42
42
|
7. Open http://localhost:9292 in your browser and follow links
|
data/example/Gemfile.lock
CHANGED
@@ -7,9 +7,9 @@ module OmniAuth
|
|
7
7
|
option :name, "nuwe"
|
8
8
|
|
9
9
|
option :client_options, {
|
10
|
-
:site => "https://
|
11
|
-
:authorize_url => "https://
|
12
|
-
:token_url => "https://
|
10
|
+
:site => "https://developer.nuwe.co",
|
11
|
+
:authorize_url => "https://developer.nuwe.co/oauth/authorize",
|
12
|
+
:token_url => "https://developer.nuwe.co/oauth/token"
|
13
13
|
}
|
14
14
|
|
15
15
|
uid { raw_info["user"]["id"] }
|
@@ -11,11 +11,11 @@ describe "OmniAuth::Strategies::Nuwe" do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
it 'has correct OAuth endpoint' do
|
14
|
-
expect(subject.options.client_options.site).to eq('https://
|
14
|
+
expect(subject.options.client_options.site).to eq('https://developer.nuwe.co')
|
15
15
|
end
|
16
16
|
|
17
17
|
it 'has correct authorize url' do
|
18
|
-
expect(subject.options.client_options.authorize_url).to eq('https://
|
18
|
+
expect(subject.options.client_options.authorize_url).to eq('https://developer.nuwe.co/oauth/authorize')
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-nuwe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephanie Nemeth
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -94,6 +94,7 @@ extensions: []
|
|
94
94
|
extra_rdoc_files: []
|
95
95
|
files:
|
96
96
|
- ".gitignore"
|
97
|
+
- ".ruby-version"
|
97
98
|
- Gemfile
|
98
99
|
- LICENSE.txt
|
99
100
|
- README.md
|
@@ -127,10 +128,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
128
|
version: '0'
|
128
129
|
requirements: []
|
129
130
|
rubyforge_project:
|
130
|
-
rubygems_version: 2.
|
131
|
+
rubygems_version: 2.2.2
|
131
132
|
signing_key:
|
132
133
|
specification_version: 4
|
133
134
|
summary: OmniAuth strategy for Nuwe.
|
134
135
|
test_files:
|
135
136
|
- spec/omniauth/strategies/nuwe_spec.rb
|
136
137
|
- spec/spec_helper.rb
|
138
|
+
has_rdoc:
|