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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d05c65d19d22d1de3d8faa4a953b2742fd61ac31
4
- data.tar.gz: 1521fdbab54590e21eff20dfdc91e78b7cbb94f0
3
+ metadata.gz: bcad7b865a18795a950d9bb4c8aa997bea07a9cc
4
+ data.tar.gz: 5ddbff59b140ad86e17a917c8b7277654f858e74
5
5
  SHA512:
6
- metadata.gz: d5667c7cbaf6c42f83e6bde38815154a06acca1c500d0cbc4fa1ec3e41e125ba2634540842e09359d65e79b52c1104437956e3e5ec61d754abc33c8fdfa75ecb
7
- data.tar.gz: 9ffd843dfd573bc1f0853e83502708318096efda747be9fc5a56825dd428c5a543147d53c393bc08c6dd3bc126b9de36619fd96c7148625cad86e558e9ae0a73
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']
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Zimbra
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-zimbra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patricio Bruna