auth0 0.1.1 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b235b88935ed3273049d75b4b891ff2b1e0bd637
4
- data.tar.gz: f8567a5d22322d22603b7e3c0248188786b743cf
5
- SHA512:
6
- metadata.gz: 26126f0981c005afa5e123cf0758a725d899b66d2537cf70cb068304b59d275051776bb6c50178888ea7098a906784d88fc8bfb5a2596418588a27e1d3b5dcf0
7
- data.tar.gz: 8f87177b135bd95905f15f0b5b39a41898ea216dff7c788c6c68b2f06db0c5a9c6fe269114be3ebaef5c956996b4251f97fbc93267058e8d04cc6509783a0beb
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YTlmZWUwZDJiOGNlODk1MmU5ZGJjYjI2YmQxYWQzNjZkNDc0MzZhZg==
5
+ data.tar.gz: !binary |-
6
+ MWU2MGY4MGJkOTE4ZmM3MjkyNzNjNzk1ZjQyMzQ0YjliY2FlMTcxNA==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ NTRlNTdhMDJkN2IyNGEzMmE4NGY4NjJlNjhiN2VjYmFlN2E5OGJkMjEzN2Nj
10
+ YmM3ZTJkN2JiY2UzMzU4NzBkZDc2OWJkNDE2NTJiZWVjYTUzZDZhMTdjYjQ0
11
+ YTA1MjM0MTliZjA3MDA1ZTI5OWRjNmI5MzY0ZjJhMzkwZDFhOGE=
12
+ data.tar.gz: !binary |-
13
+ MTA0YTc5NmIyNjgyNzZkM2MxMTY5Nzg2YWIwNDlhYjVkM2E2ZDI0MTliNjll
14
+ MDNhZWExOTNlZjhjNzZlZjIyOTlmMWZmY2Q4MjE0OTdhZmZmNDljOTJhMjlk
15
+ ZTdlYTYzMmEwNzg0Y2Q1NmU0OWEyNGJiYWI1MjgxYzY1MmMzZDM=
data/README.md CHANGED
@@ -18,6 +18,8 @@ on the [Auth0 Page](https://app.auth0.com).
18
18
  provider :auth0, ENV['CLIENT_ID'], ENV['CLIENT_SECRET'], ENV['YOUR_NAMESPACE']
19
19
  end
20
20
 
21
+ > Optional you can set the `:provider_ignores_state` passing a fourth parameter. By default it is true.
22
+
21
23
  ## Connections
22
24
 
23
25
  You can authorize many connections through Auth0. Link to
@@ -1,3 +1,3 @@
1
1
  module Auth0
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -10,11 +10,14 @@ module OmniAuth
10
10
 
11
11
  option :name, "auth0"
12
12
  option :namespace, nil
13
+ option :provider_ignores_state, true
13
14
 
14
- args [:client_id, :client_secret, :namespace]
15
+ args [:client_id, :client_secret, :namespace, :provider_ignores_state]
15
16
 
16
17
  def initialize(app, *args, &block)
17
18
  super
19
+ @options.provider_ignores_state = args[3] unless args[3].nil?
20
+
18
21
  @options.client_options.site = "https://#{options[:namespace]}"
19
22
  @options.client_options.authorize_url = "https://#{options[:namespace]}/authorize"
20
23
  @options.client_options.token_url = "https://#{options[:namespace]}/oauth/token"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auth0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezequiel Morito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-19 00:00:00.000000000 Z
11
+ date: 2013-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -56,42 +56,42 @@ dependencies:
56
56
  name: rack-test
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ! '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: webmock
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ! '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  description: Ruby client library for the Auth0 platform.
@@ -120,12 +120,12 @@ require_paths:
120
120
  - lib
121
121
  required_ruby_version: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - '>='
123
+ - - ! '>='
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  requirements:
128
- - - '>='
128
+ - - ! '>='
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
131
  requirements: []