@@ -34,7 +34,7 @@ get_access_token(OAuthProvider, Request) ->
3434 Type = ? CONTENT_URLENCODED ,
3535 Body = build_access_token_request_body (Request ),
3636 HTTPOptions =
37- map_ssl_options_to_httpc_option (OAuthProvider ) ++
37+ map_ssl_options_to_httpc_option (OAuthProvider # oauth_provider . ssl_options ) ++
3838 map_timeout_to_httpc_option (Request # access_token_request .timeout ),
3939 Response = http_post (URL , Header , Type , Body , HTTPOptions ,
4040 OAuthProvider # oauth_provider .proxy_options ),
@@ -129,7 +129,10 @@ drop_trailing_path_separator(Path) when is_list(Path) ->
129129get_openid_configuration (DiscoverEndpoint , TLSOptions , ProxyOptions ) ->
130130 rabbit_log :debug (" get_openid_configuration from ~p (~p ) [~p ]" , [DiscoverEndpoint ,
131131 format_ssl_options (TLSOptions ), format_proxy_options (ProxyOptions )]),
132- Response = http_get (DiscoverEndpoint , TLSOptions , ProxyOptions ),
132+ HTTPOptions =
133+ map_ssl_options_to_httpc_option (TLSOptions ) ++
134+ map_timeout_to_httpc_option (? DEFAULT_HTTP_TIMEOUT ),
135+ Response = http_get (DiscoverEndpoint , HTTPOptions , ProxyOptions ),
133136 parse_openid_configuration_response (Response ).
134137
135138-spec merge_openid_configuration (openid_configuration (), oauth_provider ()) ->
0 commit comments