File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ class Cloudfoundry
47
47
option :token_server_url , nil
48
48
option :scope , nil
49
49
option :async_calls , false
50
+ option :skip_ssl_validation , false
50
51
51
52
attr_accessor :access_token
52
53
attr_reader :token_issuer
@@ -72,10 +73,14 @@ def client
72
73
end
73
74
end
74
75
75
- @token_issuer ||= CF ::UAA ::TokenIssuer . new ( @auth_server_url ,
76
- options . client_id ,
77
- options . client_secret ,
78
- { :token_target => @token_server_url } )
76
+ @token_issuer ||= CF ::UAA ::TokenIssuer . new (
77
+ @auth_server_url ,
78
+ options . client_id ,
79
+ options . client_secret ,
80
+ {
81
+ :token_target => @token_server_url ,
82
+ :skip_ssl_validation => options . skip_ssl_validation
83
+ } )
79
84
log :info , "Client: #{ options . client_id } auth_server: #{ @auth_server_url } token_server: #{ @token_server_url } "
80
85
@token_issuer . logger = OmniAuth . logger
81
86
end
@@ -84,7 +89,10 @@ def client
84
89
end
85
90
86
91
def uaa_info
87
- @uaa_info ||= CF ::UAA ::Info . new ( @token_server_url )
92
+ @uaa_info ||= CF ::UAA ::Info . new (
93
+ @token_server_url ,
94
+ :skip_ssl_validation => options . skip_ssl_validation
95
+ )
88
96
end
89
97
90
98
def callback_url
Original file line number Diff line number Diff line change 13
13
14
14
module OmniAuth
15
15
module Cloudfoundry
16
- VERSION = "0.0.5 "
16
+ VERSION = "0.0.6 "
17
17
end
18
18
end
You can’t perform that action at this time.
0 commit comments