oa-basic 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/omniauth/strategies/http_basic.rb +5 -5
- metadata +7 -7
@@ -35,13 +35,13 @@ module OmniAuth
|
|
35
35
|
|
36
36
|
def perform
|
37
37
|
@response = perform_authentication(endpoint)
|
38
|
-
@env['
|
38
|
+
@env['omniauth.auth'] = auth_hash
|
39
39
|
@env['REQUEST_METHOD'] = 'GET'
|
40
40
|
@env['PATH_INFO'] = "#{OmniAuth.config.path_prefix}/#{name}/callback"
|
41
|
-
|
42
|
-
|
43
|
-
rescue RestClient::Request::Unauthorized
|
44
|
-
fail!(:invalid_credentials)
|
41
|
+
|
42
|
+
call_app!
|
43
|
+
rescue RestClient::Request::Unauthorized => e
|
44
|
+
fail!(:invalid_credentials, e)
|
45
45
|
end
|
46
46
|
|
47
47
|
def perform_authentication(uri, headers = request_headers)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oa-basic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Bleigh
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-10-
|
18
|
+
date: 2010-10-11 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -24,12 +24,12 @@ dependencies:
|
|
24
24
|
requirements:
|
25
25
|
- - "="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
hash:
|
27
|
+
hash: 29
|
28
28
|
segments:
|
29
29
|
- 0
|
30
30
|
- 1
|
31
|
-
-
|
32
|
-
version: 0.1.
|
31
|
+
- 3
|
32
|
+
version: 0.1.3
|
33
33
|
requirement: *id001
|
34
34
|
name: oa-core
|
35
35
|
prerelease: false
|