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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f72bb8fbc1159d34b63fcabff0c5e4ae3884a952
4
- data.tar.gz: 585bdc7a2c0238b41df4fdfaf1c1c645db6a18f7
3
+ metadata.gz: 88b2cfbd0f18d63efee528dbb906e0d7a661bb22
4
+ data.tar.gz: d2418179c7f64b77b71447f2580e4c8ade883941
5
5
  SHA512:
6
- metadata.gz: e52dc82b43f7bc9d1c6776f619c8e05d623487ef05e83cb00233af9df37d811236e72ba6fb713ee0351e6e5911e8c1dfd0d8f83b1afd520e4f406bef7ecdf3bb
7
- data.tar.gz: a0d841ac37d99ea10c0a3cf45087c4d588a80b98a417cc35e8466808e22c4dd8a17f1337579ee4164841fb4da58c903c579ce5e4cc8a24d9f4d00ecb49c02fb8
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['NUWE_KEY'], ENV['NUWE_SECRET']
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 NUWE_KEY and NUWE_SECRET
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['NUWE_KEY'], ENV['NUWE_SECRET']
28
+ provider :nuwe, ENV['APPLICATION_ID'], ENV['CLIENT_SECRET']
29
29
  end
30
30
 
31
31
  run App.new
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Nuwe
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
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.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-09 00:00:00.000000000 Z
11
+ date: 2015-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth