@@ -173,37 +173,6 @@ get_algorithms(OAuthProviderId) ->
173173 V -> proplists :get_value (algorithms , V , undefined )
174174 end .
175175
176- -spec get_proxy (oauth_provider_id ()) -> list () | undefined .
177- get_proxy (root ) ->
178- proplists :get_value (proxy , get_env (key_config , []), undefined );
179- get_proxy (OAuthProviderId ) ->
180- OAuthProviders = get_env (oauth_providers , #{}),
181- case maps :get (OAuthProviderId , OAuthProviders , undefined ) of
182- undefined -> undefined ;
183- V -> proplists :get_value (proxy , V , undefined )
184- end .
185-
186- -spec get_proxy_auth (oauth_provider_id ()) -> {list (),list ()} | undefined .
187- get_proxy_auth (root ) ->
188- get_proxy_auth (
189- proplists :get_value (proxy_username , get_env (key_config , []), undefined ),
190- proplists :get_value (proxy_password , get_env (key_config , []), undefined )
191- );
192- get_proxy_auth (OAuthProviderId ) ->
193- OAuthProviders = get_env (oauth_providers , #{}),
194- case maps :get (OAuthProviderId , OAuthProviders , undefined ) of
195- undefined -> undefined ;
196- V -> get_proxy_auth (
197- proplists :get_value (proxy_username , V , undefined ),
198- proplists :get_value (proxy_password , V , undefined )
199- )
200- end .
201- get_proxy_auth (Username , Password ) ->
202- case {Username , Password } of
203- {undefined , _ } -> undefined ;
204- {_ , undefined } -> undefined ;
205- {_ ,_ } = Auth -> Auth
206- end .
207176
208177get_env (Par ) ->
209178 application :get_env (rabbitmq_auth_backend_oauth2 , Par , undefined ).
0 commit comments