Skip to content

Commit 6056f83

Browse files
Keep get_openid_configuration/2
1 parent 6701ea0 commit 6056f83

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

deps/oauth2_client/src/oauth2_client.erl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
-export([get_access_token/2, get_expiration_time/1,
99
refresh_access_token/2,
1010
get_oauth_provider/1, get_oauth_provider/2,
11-
get_openid_configuration/3,
11+
get_openid_configuration/2,get_openid_configuration/3,
1212
build_openid_discovery_endpoint/3,
1313
merge_openid_configuration/2,
1414
merge_oauth_provider/2,
@@ -122,6 +122,11 @@ drop_trailing_path_separator(Path) when is_list(Path) ->
122122
_ -> Path
123123
end.
124124

125+
-spec get_openid_configuration(DiscoveryEndpoint :: uri_string:uri_string(),
126+
ssl:tls_option() | []) -> {ok, openid_configuration()} | {error, term()}.
127+
get_openid_configuration(DiscoverEndpoint, TLSOptions) ->
128+
get_openid_configuration(DiscoverEndpoint, TLSOptions, undefined).
129+
125130
-spec get_openid_configuration(DiscoveryEndpoint :: uri_string:uri_string(),
126131
ssl:tls_option() | [], proxy_options() | undefined | 'none') ->
127132
{ok, openid_configuration()} | {error, term()}.

0 commit comments

Comments
 (0)