omniauth-zimbra 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/strategies/zimbra.rb +6 -1
- data/lib/omniauth-zimbra/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcad7b865a18795a950d9bb4c8aa997bea07a9cc
|
4
|
+
data.tar.gz: 5ddbff59b140ad86e17a917c8b7277654f858e74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbdf9bd74215cbf50cc5bd7e0da7755c0f5230ca2c6f3364e113cfe67e8edd869cef0184b9d737051aa4f88933b56c4ed29c6c26f42bd4f0cf25c50f4860ebb4
|
7
|
+
data.tar.gz: fa149ae4e91910bf4f1d4841e4d9dc1931b441c42e501c0878de97d995563f5474c0db8f6c4187771762350c9291ccf76a687a650481fe71aa9400a9f2e89803
|
@@ -1,14 +1,15 @@
|
|
1
1
|
require 'omniauth'
|
2
|
-
require 'zimbra'
|
3
2
|
|
4
3
|
module OmniAuth
|
5
4
|
module Strategies
|
6
5
|
class Zimbra
|
6
|
+
require 'zimbra'
|
7
7
|
include OmniAuth::Strategy
|
8
8
|
|
9
9
|
args [:endpoint]
|
10
10
|
|
11
11
|
option :title, "Zimbra Admin Auth"
|
12
|
+
option :debug, false
|
12
13
|
|
13
14
|
def request_phase
|
14
15
|
OmniAuth::Form.build(:title => options.title, :url => callback_path) do
|
@@ -31,6 +32,10 @@ module OmniAuth
|
|
31
32
|
def endpoint
|
32
33
|
options.endpoint
|
33
34
|
end
|
35
|
+
|
36
|
+
def debug
|
37
|
+
options[:debug]
|
38
|
+
end
|
34
39
|
|
35
40
|
def username
|
36
41
|
request['email']
|