Skip to content

Commit 0ed007a

Browse files
Fix error
1 parent afe53de commit 0ed007a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

deps/oauth2_client/src/oauth2_client.erl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ drop_trailing_path_separator(Path) when is_list(Path) ->
124124
end.
125125

126126
-spec get_openid_configuration(DiscoveryEndpoint :: uri_string:uri_string(),
127-
ssl:tls_option() | [], proxy_options() | undefined) ->
127+
ssl:tls_option() | [], proxy_options() | undefined | 'none') ->
128128
{ok, openid_configuration()} | {error, term()}.
129129
get_openid_configuration(DiscoverEndpoint, TLSOptions, ProxyOptions) ->
130130
rabbit_log:debug("get_openid_configuration from ~p (~p) [~p]", [DiscoverEndpoint,
@@ -313,7 +313,8 @@ download_oauth_provider(OAuthProvider) ->
313313
undefined -> {error, {missing_oauth_provider_attributes, [issuer]}};
314314
URL ->
315315
rabbit_log:debug("Downloading oauth_provider using ~p ", [URL]),
316-
case get_openid_configuration(URL, get_httpc_option_ssl_options_if_any(OAuthProvider),
316+
case get_openid_configuration(URL,
317+
OAuthProvider#oauth_provider.ssl_options,
317318
OAuthProvider#oauth_provider.proxy_options) of
318319
{ok, OpenIdConfiguration} ->
319320
{ok, update_oauth_provider_endpoints_configuration(

0 commit comments

Comments
 (0)