@@ -201,7 +201,7 @@ function get_auth_configuration(state::NoAuthentication)
201201 output = IOBuffer ()
202202 auth_suffix = isempty (state. auth_suffix) ? " auth" : state. auth_suffix
203203 response = Downloads. request (
204- joinpath (state. server, auth_suffix, " configuration" ) ,
204+ " $ (state. server) / $( auth_suffix) / configuration" ,
205205 method = " GET" ,
206206 output = output,
207207 throw = false ,
@@ -210,7 +210,7 @@ function get_auth_configuration(state::NoAuthentication)
210210
211211 def_resp = Dict {String, Any} (
212212 " device_flow_supported" => false ,
213- " refresh_url" => joinpath (state. server, auth_suffix, " renew/token.toml/v2/" )
213+ " refresh_url" => " $ (state. server) / $( auth_suffix) / renew/token.toml/v2/"
214214 )
215215
216216 if response isa Downloads. Response && response. status == 200
@@ -279,7 +279,7 @@ function initiate_browser_challenge(state::NoAuthentication)
279279 output = IOBuffer ()
280280 challenge = Random. randstring (32 )
281281 response = Downloads. request (
282- joinpath (state. server, state. auth_suffix, " challenge" ) ,
282+ " $ (state. server) / $( state. auth_suffix) / challenge" ,
283283 method = " POST" ,
284284 input = IOBuffer (challenge),
285285 output = output,
@@ -427,7 +427,7 @@ function step(state::RequestLogin)::Union{ClaimToken, Failure}
427427 url = if is_device
428428 string (state. response[" verification_uri_complete" ])
429429 else
430- joinpath (state. server, state. auth_suffix, string ( " response?" , state. response))
430+ " $ (state. server) / $( state. auth_suffix) / response?$( state. response)"
431431 end
432432
433433 success = open_browser (url)
@@ -494,7 +494,7 @@ function step(state::ClaimToken)::Union{ClaimToken, HasNewToken, Failure}
494494 " response" => state. response,
495495 ))
496496 response = Downloads. request (
497- joinpath (state. server, state. auth_suffix, " claimtoken" ) ,
497+ " $ (state. server) / $( state. auth_suffix) / claimtoken" ,
498498 method = " POST" ,
499499 input = IOBuffer (data),
500500 output = output,
0 commit comments