omniauth-fullscreen 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YWE2ZGJkMTk5NGU3OTBkYTRiZWU5ODQwZTA5NGNkNDk3ZGI2N2FhMQ==
5
- data.tar.gz: !binary |-
6
- NzAyMmFlZmU1YmExYzkwNDMxNDZlZjk3MTQxNTExMTVmY2JjNmUzZA==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- N2VjNmEyODNlOGQzNGJlMTcyZmVjMWRmY2JlZTgxYThkNGI4YTk1MDgzNzJh
10
- MzkwMjNlZTg5MDAzZDEyMDQyYmFkZjZiNDY3NzUyMDgyMGUzYjc3ZmU2ODI4
11
- NTRjYjczOTI2NWQxMTQ3MWEwMjdmNTZhYWVmZDMwZjFiMGM0ZTQ=
12
- data.tar.gz: !binary |-
13
- ZjdlNmYyMTYwYzE0YjdhMGJkMDViNzZlZTUyMmE2ZDA1NDgzYzZjODNjZDhi
14
- ZWFmNjc3NTkxNDRhYzUxOWFlN2ViNmQ5YWQwYTRhNTVhOGM0ZmU3YmE5OGY1
15
- YjQ5OTk2NTA5NGEwODExY2ZlNjliMWIyOGVjZTExYTJmZjFlOTc=
2
+ SHA1:
3
+ metadata.gz: adb683a6eccd0ecbdadcb549475ba8661610cc72
4
+ data.tar.gz: 9caacb3c3ac133a1a773b6eae5f2b7f9daec02e4
5
+ SHA512:
6
+ metadata.gz: 2e2050b036a9eafcfe8bf4d012881c99454db15153508727c170493fb70c268e2df63f3eb4aa3f58c34afeae4c4b6b1ed7b41632b905a7c931a748503a730881
7
+ data.tar.gz: c5ebd7d4f87abd125e50df07f6e1f9cae64ec3d63c4301914c29a147e0ae9df7f8e3106dec5d0c12065de8b60bdd7f8bc2a3c5c2c6f0008818480550d4182226
data/.gitignore CHANGED
@@ -52,3 +52,6 @@ pkg
52
52
  .rvmrc
53
53
 
54
54
  Gemfile.lock
55
+
56
+ gems
57
+
data/README.md CHANGED
@@ -4,7 +4,7 @@ Strategy to authenticate with Fullscreen via OAuth2 in OmniAuth.
4
4
 
5
5
  ## Installation
6
6
 
7
- Add to your `Gemfile`:
7
+ `omniauth-fullscreen` is hosted through [RubyGems](http://rubygems.org/gems/omniauth-fullscreen). Add to your `Gemfile`:
8
8
 
9
9
  ```ruby
10
10
  gem "omniauth-fullscreen"
@@ -21,7 +21,7 @@ Rails.application.config.middleware.use OmniAuth::Builder do
21
21
  end
22
22
  ```
23
23
 
24
- You can now access the OmniAuth Google OAuth2 URL: `/auth/fullscreen`
24
+ You can now access the OmniAuth Fullscreen OAuth2 URL: `/auth/fullscreen`
25
25
 
26
26
  ### Devise
27
27
 
@@ -37,7 +37,7 @@ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
37
37
  flash[:notice] = I18n.t "devise.omniauth_callbacks.success", :kind => "Fullscreen"
38
38
  sign_in_and_redirect @user, :event => :authentication
39
39
  else
40
- session["devise.google_data"] = request.env["omniauth.auth"]
40
+ session["devise.fullscreen_data"] = request.env["omniauth.auth"]
41
41
  redirect_to new_user_registration_url
42
42
  end
43
43
  end
@@ -71,15 +71,15 @@ Here's an example of an authentication hash available in the callback by accessi
71
71
  ```ruby
72
72
  {
73
73
  :provider => "fullscreen",
74
- :uid => 12345,
74
+ :uid => "12345",
75
75
  :info => {
76
76
  :email => "john@company_name.com",
77
77
  :first_name => "John",
78
- :last_name => "Doe"
78
+ :last_name => "Doe",
79
+ :name => "John Doe"
79
80
  },
80
81
  :credentials => {
81
82
  :token => "token",
82
- :refresh_token => "another_token",
83
83
  :expires_at => 1354920555,
84
84
  :expires => true
85
85
  }
data/examples/config.ru CHANGED
@@ -1,5 +1,5 @@
1
1
  # Sample app for Google OAuth2 Strategy
2
- # Make sure to setup the ENV variables GOOGLE_KEY and GOOGLE_SECRET
2
+ # Make sure to setup the ENV variables FULLSCREEN_KEY and FULLSCREEN_SECRET
3
3
  # Run with "bundle exec rackup"
4
4
 
5
5
  require 'rubygems'
@@ -36,7 +36,7 @@ use Rack::Session::Cookie, :secret => ENV['RACK_COOKIE_SECRET']
36
36
 
37
37
  use OmniAuth::Builder do
38
38
  # Regular usage
39
- provider :fullscreen, ENV['FULLSCREEN_KEY'], ENV['FULLSCREEN_SECRET'], {}
39
+ provider :fullscreen, ENV['FULLSCREEN_KEY'], ENV['FULLSCREEN_SECRET'], { prompt: 'consent' }
40
40
  end
41
41
 
42
42
  run App.new
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Fullscreen
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -6,7 +6,7 @@ module OmniAuth
6
6
 
7
7
  option :name, 'fullscreen'
8
8
 
9
- option :authorize_options, [:state]
9
+ option :authorize_options, [:state, :prompt]
10
10
 
11
11
  option :client_options, {
12
12
  site: 'https://accounts.fullscreen.net',
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-fullscreen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Stavropoulos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-21 00:00:00.000000000 Z
11
+ date: 2013-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
@@ -42,14 +42,14 @@ dependencies:
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: The Official Fullscreen OAuth2 strategy
@@ -80,12 +80,12 @@ require_paths:
80
80
  - lib
81
81
  required_ruby_version: !ruby/object:Gem::Requirement
82
82
  requirements:
83
- - - ! '>='
83
+ - - '>='
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ! '>='
88
+ - - '>='
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  requirements: []