omniauth-nuwe 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -1
- data/example/config.ru +2 -2
- data/lib/omniauth-nuwe/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88b2cfbd0f18d63efee528dbb906e0d7a661bb22
|
4
|
+
data.tar.gz: d2418179c7f64b77b71447f2580e4c8ade883941
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a15a80dbb79c11ff6adc2074b77ea474df2ce7453337fa8f861925fe2a7dbbe6c63c37dea6829c4892ff2c1c08deb2096b21e4db4fdb14763f752c913426d640
|
7
|
+
data.tar.gz: 148b075e8be0be68acccda573615dd7dabd7da1da0af92661fc26481ecc513e95de6ca9c55ee0203c44a43c399fca1779a0d3ebf24e54da5399fced3ae98b11a
|
data/README.md
CHANGED
@@ -25,8 +25,18 @@ Here's a quick example, adding the middleware to a Rails app in `config/initiali
|
|
25
25
|
|
26
26
|
```ruby
|
27
27
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
28
|
-
provider :nuwe, ENV['
|
28
|
+
provider :nuwe, ENV['APPLICATION_ID'], ENV['CLIENT_SECRET']
|
29
29
|
end
|
30
30
|
```
|
31
31
|
|
32
32
|
You can now access the OmniAuth Nuwe OAuth2 URL: `/auth/nuwe`.
|
33
|
+
|
34
|
+
## Example
|
35
|
+
|
36
|
+
1. Clone this repo and `cd` into it
|
37
|
+
2. `bundle install`
|
38
|
+
3. `cd example`
|
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://api.nuapi.co.
|
41
|
+
6. `bundle exec rackup`
|
42
|
+
7. Open http://localhost:9292 in your browser and follow links
|
data/example/config.ru
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Sample app for Nuwe OAuth2 Strategy
|
2
|
-
# Make sure to setup the ENV variables
|
2
|
+
# Make sure to setup the ENV variables APPLICATION_ID and CLIENT_SECRET
|
3
3
|
# Run with "bundle exec rackup"
|
4
4
|
|
5
5
|
require 'bundler/setup'
|
@@ -25,7 +25,7 @@ end
|
|
25
25
|
use Rack::Session::Cookie, :secret => 'change_me'
|
26
26
|
|
27
27
|
use OmniAuth::Builder do
|
28
|
-
provider :nuwe, ENV['
|
28
|
+
provider :nuwe, ENV['APPLICATION_ID'], ENV['CLIENT_SECRET']
|
29
29
|
end
|
30
30
|
|
31
31
|
run App.new
|
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.1
|
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-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|