auth0 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +14 -6
- data/README.md +2 -0
- data/lib/auth0/version.rb +1 -1
- data/lib/omniauth/strategies/auth0.rb +4 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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
|
data/lib/auth0/version.rb
CHANGED
@@ -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.
|
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-
|
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: []
|