Remote login
GET
/api/v1/auth/remote
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");curl_easy_setopt(hnd, CURLOPT_URL, "http://127.0.0.1:58259/api/v1/auth/remote");
struct curl_slist *headers = NULL;headers = curl_slist_append(headers, "headers: empty,true,location,https://example.com,host,{\"address\":{\"address\":\"example\",\"hostAddress\":\"example\",\"linkLocalAddress\":true,\"hostName\":\"example\",\"multicastAddress\":true,\"anyLocalAddress\":true,\"loopbackAddress\":true,\"siteLocalAddress\":true,\"mcglobal\":true,\"mcnodeLocal\":true,\"mclinkLocal\":true,\"mcsiteLocal\":true,\"mcorgLocal\":true,\"canonicalHostName\":\"example\"},\"port\":1,\"hostName\":\"example\",\"hostString\":\"example\",\"unresolved\":true},all,{\"additionalProperty\":\"example\"},lastModified,1,date,1,contentLength,1,contentDisposition,{\"type\":\"example\",\"name\":\"example\",\"filename\":\"example\",\"charset\":\"example\",\"attachment\":true,\"formData\":true,\"inline\":true},acceptCharset,[\"example\"],contentLanguage,example,origin,example,range,[\"example\"],bearerAuth,example,cacheControl,example,expires,1,allow,[\"example\"],acceptLanguage,[{\"range\":\"example\",\"weight\":1}],basicAuth,example,accept,[{\"type\":\"example\",\"subtype\":\"example\",\"parameters\":{\"additionalProperty\":\"example\"},\"qualityValue\":1,\"concrete\":true,\"wildcardType\":true,\"wildcardSubtype\":true,\"subtypeSuffix\":\"example\",\"charset\":\"example\"}],acceptLanguageAsLocales,[\"example\"],acceptPatch,[{\"type\":\"example\",\"subtype\":\"example\",\"parameters\":{\"additionalProperty\":\"example\"},\"qualityValue\":1,\"concrete\":true,\"wildcardType\":true,\"wildcardSubtype\":true,\"subtypeSuffix\":\"example\",\"charset\":\"example\"}],accessControlAllowCredentials,true,accessControlAllowHeaders,[\"example\"],accessControlAllowMethods,[\"example\"],accessControlAllowOrigin,example,accessControlExposeHeaders,[\"example\"],accessControlMaxAge,1,accessControlRequestHeaders,[\"example\"],accessControlRequestMethod,example,etag,example,ifMatch,[\"example\"],ifNoneMatch,[\"example\"],ifUnmodifiedSince,1,pragma,example,upgrade,example,vary,[\"example\"],connection,[\"example\"],ifModifiedSince,1,contentType,{\"type\":\"example\",\"subtype\":\"example\",\"parameters\":{\"additionalProperty\":\"example\"},\"qualityValue\":1,\"concrete\":true,\"wildcardType\":true,\"wildcardSubtype\":true,\"subtypeSuffix\":\"example\",\"charset\":\"example\"}");curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("http://127.0.0.1:58259/api/v1/auth/remote"), Headers = { { "headers", "empty,true,location,https://example.com,host,{\"address\":{\"address\":\"example\",\"hostAddress\":\"example\",\"linkLocalAddress\":true,\"hostName\":\"example\",\"multicastAddress\":true,\"anyLocalAddress\":true,\"loopbackAddress\":true,\"siteLocalAddress\":true,\"mcglobal\":true,\"mcnodeLocal\":true,\"mclinkLocal\":true,\"mcsiteLocal\":true,\"mcorgLocal\":true,\"canonicalHostName\":\"example\"},\"port\":1,\"hostName\":\"example\",\"hostString\":\"example\",\"unresolved\":true},all,{\"additionalProperty\":\"example\"},lastModified,1,date,1,contentLength,1,contentDisposition,{\"type\":\"example\",\"name\":\"example\",\"filename\":\"example\",\"charset\":\"example\",\"attachment\":true,\"formData\":true,\"inline\":true},acceptCharset,[\"example\"],contentLanguage,example,origin,example,range,[\"example\"],bearerAuth,example,cacheControl,example,expires,1,allow,[\"example\"],acceptLanguage,[{\"range\":\"example\",\"weight\":1}],basicAuth,example,accept,[{\"type\":\"example\",\"subtype\":\"example\",\"parameters\":{\"additionalProperty\":\"example\"},\"qualityValue\":1,\"concrete\":true,\"wildcardType\":true,\"wildcardSubtype\":true,\"subtypeSuffix\":\"example\",\"charset\":\"example\"}],acceptLanguageAsLocales,[\"example\"],acceptPatch,[{\"type\":\"example\",\"subtype\":\"example\",\"parameters\":{\"additionalProperty\":\"example\"},\"qualityValue\":1,\"concrete\":true,\"wildcardType\":true,\"wildcardSubtype\":true,\"subtypeSuffix\":\"example\",\"charset\":\"example\"}],accessControlAllowCredentials,true,accessControlAllowHeaders,[\"example\"],accessControlAllowMethods,[\"example\"],accessControlAllowOrigin,example,accessControlExposeHeaders,[\"example\"],accessControlMaxAge,1,accessControlRequestHeaders,[\"example\"],accessControlRequestMethod,example,etag,example,ifMatch,[\"example\"],ifNoneMatch,[\"example\"],ifUnmodifiedSince,1,pragma,example,upgrade,example,vary,[\"example\"],connection,[\"example\"],ifModifiedSince,1,contentType,{\"type\":\"example\",\"subtype\":\"example\",\"parameters\":{\"additionalProperty\":\"example\"},\"qualityValue\":1,\"concrete\":true,\"wildcardType\":true,\"wildcardSubtype\":true,\"subtypeSuffix\":\"example\",\"charset\":\"example\"}" }, },};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}package main
import ( "fmt" "net/http" "io")
func main() {
url := "http://127.0.0.1:58259/api/v1/auth/remote"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("headers", "empty,true,location,https://example.com,host,{\"address\":{\"address\":\"example\",\"hostAddress\":\"example\",\"linkLocalAddress\":true,\"hostName\":\"example\",\"multicastAddress\":true,\"anyLocalAddress\":true,\"loopbackAddress\":true,\"siteLocalAddress\":true,\"mcglobal\":true,\"mcnodeLocal\":true,\"mclinkLocal\":true,\"mcsiteLocal\":true,\"mcorgLocal\":true,\"canonicalHostName\":\"example\"},\"port\":1,\"hostName\":\"example\",\"hostString\":\"example\",\"unresolved\":true},all,{\"additionalProperty\":\"example\"},lastModified,1,date,1,contentLength,1,contentDisposition,{\"type\":\"example\",\"name\":\"example\",\"filename\":\"example\",\"charset\":\"example\",\"attachment\":true,\"formData\":true,\"inline\":true},acceptCharset,[\"example\"],contentLanguage,example,origin,example,range,[\"example\"],bearerAuth,example,cacheControl,example,expires,1,allow,[\"example\"],acceptLanguage,[{\"range\":\"example\",\"weight\":1}],basicAuth,example,accept,[{\"type\":\"example\",\"subtype\":\"example\",\"parameters\":{\"additionalProperty\":\"example\"},\"qualityValue\":1,\"concrete\":true,\"wildcardType\":true,\"wildcardSubtype\":true,\"subtypeSuffix\":\"example\",\"charset\":\"example\"}],acceptLanguageAsLocales,[\"example\"],acceptPatch,[{\"type\":\"example\",\"subtype\":\"example\",\"parameters\":{\"additionalProperty\":\"example\"},\"qualityValue\":1,\"concrete\":true,\"wildcardType\":true,\"wildcardSubtype\":true,\"subtypeSuffix\":\"example\",\"charset\":\"example\"}],accessControlAllowCredentials,true,accessControlAllowHeaders,[\"example\"],accessControlAllowMethods,[\"example\"],accessControlAllowOrigin,example,accessControlExposeHeaders,[\"example\"],accessControlMaxAge,1,accessControlRequestHeaders,[\"example\"],accessControlRequestMethod,example,etag,example,ifMatch,[\"example\"],ifNoneMatch,[\"example\"],ifUnmodifiedSince,1,pragma,example,upgrade,example,vary,[\"example\"],connection,[\"example\"],ifModifiedSince,1,contentType,{\"type\":\"example\",\"subtype\":\"example\",\"parameters\":{\"additionalProperty\":\"example\"},\"qualityValue\":1,\"concrete\":true,\"wildcardType\":true,\"wildcardSubtype\":true,\"subtypeSuffix\":\"example\",\"charset\":\"example\"}")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("http://127.0.0.1:58259/api/v1/auth/remote")) .header("headers", "empty,true,location,https://example.com,host,{\"address\":{\"address\":\"example\",\"hostAddress\":\"example\",\"linkLocalAddress\":true,\"hostName\":\"example\",\"multicastAddress\":true,\"anyLocalAddress\":true,\"loopbackAddress\":true,\"siteLocalAddress\":true,\"mcglobal\":true,\"mcnodeLocal\":true,\"mclinkLocal\":true,\"mcsiteLocal\":true,\"mcorgLocal\":true,\"canonicalHostName\":\"example\"},\"port\":1,\"hostName\":\"example\",\"hostString\":\"example\",\"unresolved\":true},all,{\"additionalProperty\":\"example\"},lastModified,1,date,1,contentLength,1,contentDisposition,{\"type\":\"example\",\"name\":\"example\",\"filename\":\"example\",\"charset\":\"example\",\"attachment\":true,\"formData\":true,\"inline\":true},acceptCharset,[\"example\"],contentLanguage,example,origin,example,range,[\"example\"],bearerAuth,example,cacheControl,example,expires,1,allow,[\"example\"],acceptLanguage,[{\"range\":\"example\",\"weight\":1}],basicAuth,example,accept,[{\"type\":\"example\",\"subtype\":\"example\",\"parameters\":{\"additionalProperty\":\"example\"},\"qualityValue\":1,\"concrete\":true,\"wildcardType\":true,\"wildcardSubtype\":true,\"subtypeSuffix\":\"example\",\"charset\":\"example\"}],acceptLanguageAsLocales,[\"example\"],acceptPatch,[{\"type\":\"example\",\"subtype\":\"example\",\"parameters\":{\"additionalProperty\":\"example\"},\"qualityValue\":1,\"concrete\":true,\"wildcardType\":true,\"wildcardSubtype\":true,\"subtypeSuffix\":\"example\",\"charset\":\"example\"}],accessControlAllowCredentials,true,accessControlAllowHeaders,[\"example\"],accessControlAllowMethods,[\"example\"],accessControlAllowOrigin,example,accessControlExposeHeaders,[\"example\"],accessControlMaxAge,1,accessControlRequestHeaders,[\"example\"],accessControlRequestMethod,example,etag,example,ifMatch,[\"example\"],ifNoneMatch,[\"example\"],ifUnmodifiedSince,1,pragma,example,upgrade,example,vary,[\"example\"],connection,[\"example\"],ifModifiedSince,1,contentType,{\"type\":\"example\",\"subtype\":\"example\",\"parameters\":{\"additionalProperty\":\"example\"},\"qualityValue\":1,\"concrete\":true,\"wildcardType\":true,\"wildcardSubtype\":true,\"subtypeSuffix\":\"example\",\"charset\":\"example\"}") .method("GET", HttpRequest.BodyPublishers.noBody()) .build();HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());System.out.println(response.body());OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder() .url("http://127.0.0.1:58259/api/v1/auth/remote") .get() .addHeader("headers", "empty,true,location,https://example.com,host,{\"address\":{\"address\":\"example\",\"hostAddress\":\"example\",\"linkLocalAddress\":true,\"hostName\":\"example\",\"multicastAddress\":true,\"anyLocalAddress\":true,\"loopbackAddress\":true,\"siteLocalAddress\":true,\"mcglobal\":true,\"mcnodeLocal\":true,\"mclinkLocal\":true,\"mcsiteLocal\":true,\"mcorgLocal\":true,\"canonicalHostName\":\"example\"},\"port\":1,\"hostName\":\"example\",\"hostString\":\"example\",\"unresolved\":true},all,{\"additionalProperty\":\"example\"},lastModified,1,date,1,contentLength,1,contentDisposition,{\"type\":\"example\",\"name\":\"example\",\"filename\":\"example\",\"charset\":\"example\",\"attachment\":true,\"formData\":true,\"inline\":true},acceptCharset,[\"example\"],contentLanguage,example,origin,example,range,[\"example\"],bearerAuth,example,cacheControl,example,expires,1,allow,[\"example\"],acceptLanguage,[{\"range\":\"example\",\"weight\":1}],basicAuth,example,accept,[{\"type\":\"example\",\"subtype\":\"example\",\"parameters\":{\"additionalProperty\":\"example\"},\"qualityValue\":1,\"concrete\":true,\"wildcardType\":true,\"wildcardSubtype\":true,\"subtypeSuffix\":\"example\",\"charset\":\"example\"}],acceptLanguageAsLocales,[\"example\"],acceptPatch,[{\"type\":\"example\",\"subtype\":\"example\",\"parameters\":{\"additionalProperty\":\"example\"},\"qualityValue\":1,\"concrete\":true,\"wildcardType\":true,\"wildcardSubtype\":true,\"subtypeSuffix\":\"example\",\"charset\":\"example\"}],accessControlAllowCredentials,true,accessControlAllowHeaders,[\"example\"],accessControlAllowMethods,[\"example\"],accessControlAllowOrigin,example,accessControlExposeHeaders,[\"example\"],accessControlMaxAge,1,accessControlRequestHeaders,[\"example\"],accessControlRequestMethod,example,etag,example,ifMatch,[\"example\"],ifNoneMatch,[\"example\"],ifUnmodifiedSince,1,pragma,example,upgrade,example,vary,[\"example\"],connection,[\"example\"],ifModifiedSince,1,contentType,{\"type\":\"example\",\"subtype\":\"example\",\"parameters\":{\"additionalProperty\":\"example\"},\"qualityValue\":1,\"concrete\":true,\"wildcardType\":true,\"wildcardSubtype\":true,\"subtypeSuffix\":\"example\",\"charset\":\"example\"}") .build();
Response response = client.newCall(request).execute();import axios from 'axios';
const options = { method: 'GET', url: 'http://127.0.0.1:58259/api/v1/auth/remote', headers: { headers: 'empty,true,location,https://example.com,host,{"address":{"address":"example","hostAddress":"example","linkLocalAddress":true,"hostName":"example","multicastAddress":true,"anyLocalAddress":true,"loopbackAddress":true,"siteLocalAddress":true,"mcglobal":true,"mcnodeLocal":true,"mclinkLocal":true,"mcsiteLocal":true,"mcorgLocal":true,"canonicalHostName":"example"},"port":1,"hostName":"example","hostString":"example","unresolved":true},all,{"additionalProperty":"example"},lastModified,1,date,1,contentLength,1,contentDisposition,{"type":"example","name":"example","filename":"example","charset":"example","attachment":true,"formData":true,"inline":true},acceptCharset,["example"],contentLanguage,example,origin,example,range,["example"],bearerAuth,example,cacheControl,example,expires,1,allow,["example"],acceptLanguage,[{"range":"example","weight":1}],basicAuth,example,accept,[{"type":"example","subtype":"example","parameters":{"additionalProperty":"example"},"qualityValue":1,"concrete":true,"wildcardType":true,"wildcardSubtype":true,"subtypeSuffix":"example","charset":"example"}],acceptLanguageAsLocales,["example"],acceptPatch,[{"type":"example","subtype":"example","parameters":{"additionalProperty":"example"},"qualityValue":1,"concrete":true,"wildcardType":true,"wildcardSubtype":true,"subtypeSuffix":"example","charset":"example"}],accessControlAllowCredentials,true,accessControlAllowHeaders,["example"],accessControlAllowMethods,["example"],accessControlAllowOrigin,example,accessControlExposeHeaders,["example"],accessControlMaxAge,1,accessControlRequestHeaders,["example"],accessControlRequestMethod,example,etag,example,ifMatch,["example"],ifNoneMatch,["example"],ifUnmodifiedSince,1,pragma,example,upgrade,example,vary,["example"],connection,["example"],ifModifiedSince,1,contentType,{"type":"example","subtype":"example","parameters":{"additionalProperty":"example"},"qualityValue":1,"concrete":true,"wildcardType":true,"wildcardSubtype":true,"subtypeSuffix":"example","charset":"example"}' }};
try { const { data } = await axios.request(options); console.log(data);} catch (error) { console.error(error);}const url = 'http://127.0.0.1:58259/api/v1/auth/remote';const options = { method: 'GET', headers: { headers: 'empty,true,location,https://example.com,host,{"address":{"address":"example","hostAddress":"example","linkLocalAddress":true,"hostName":"example","multicastAddress":true,"anyLocalAddress":true,"loopbackAddress":true,"siteLocalAddress":true,"mcglobal":true,"mcnodeLocal":true,"mclinkLocal":true,"mcsiteLocal":true,"mcorgLocal":true,"canonicalHostName":"example"},"port":1,"hostName":"example","hostString":"example","unresolved":true},all,{"additionalProperty":"example"},lastModified,1,date,1,contentLength,1,contentDisposition,{"type":"example","name":"example","filename":"example","charset":"example","attachment":true,"formData":true,"inline":true},acceptCharset,["example"],contentLanguage,example,origin,example,range,["example"],bearerAuth,example,cacheControl,example,expires,1,allow,["example"],acceptLanguage,[{"range":"example","weight":1}],basicAuth,example,accept,[{"type":"example","subtype":"example","parameters":{"additionalProperty":"example"},"qualityValue":1,"concrete":true,"wildcardType":true,"wildcardSubtype":true,"subtypeSuffix":"example","charset":"example"}],acceptLanguageAsLocales,["example"],acceptPatch,[{"type":"example","subtype":"example","parameters":{"additionalProperty":"example"},"qualityValue":1,"concrete":true,"wildcardType":true,"wildcardSubtype":true,"subtypeSuffix":"example","charset":"example"}],accessControlAllowCredentials,true,accessControlAllowHeaders,["example"],accessControlAllowMethods,["example"],accessControlAllowOrigin,example,accessControlExposeHeaders,["example"],accessControlMaxAge,1,accessControlRequestHeaders,["example"],accessControlRequestMethod,example,etag,example,ifMatch,["example"],ifNoneMatch,["example"],ifUnmodifiedSince,1,pragma,example,upgrade,example,vary,["example"],connection,["example"],ifModifiedSince,1,contentType,{"type":"example","subtype":"example","parameters":{"additionalProperty":"example"},"qualityValue":1,"concrete":true,"wildcardType":true,"wildcardSubtype":true,"subtypeSuffix":"example","charset":"example"}' }};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}val client = OkHttpClient()
val request = Request.Builder() .url("http://127.0.0.1:58259/api/v1/auth/remote") .get() .addHeader("headers", "empty,true,location,https://example.com,host,{\"address\":{\"address\":\"example\",\"hostAddress\":\"example\",\"linkLocalAddress\":true,\"hostName\":\"example\",\"multicastAddress\":true,\"anyLocalAddress\":true,\"loopbackAddress\":true,\"siteLocalAddress\":true,\"mcglobal\":true,\"mcnodeLocal\":true,\"mclinkLocal\":true,\"mcsiteLocal\":true,\"mcorgLocal\":true,\"canonicalHostName\":\"example\"},\"port\":1,\"hostName\":\"example\",\"hostString\":\"example\",\"unresolved\":true},all,{\"additionalProperty\":\"example\"},lastModified,1,date,1,contentLength,1,contentDisposition,{\"type\":\"example\",\"name\":\"example\",\"filename\":\"example\",\"charset\":\"example\",\"attachment\":true,\"formData\":true,\"inline\":true},acceptCharset,[\"example\"],contentLanguage,example,origin,example,range,[\"example\"],bearerAuth,example,cacheControl,example,expires,1,allow,[\"example\"],acceptLanguage,[{\"range\":\"example\",\"weight\":1}],basicAuth,example,accept,[{\"type\":\"example\",\"subtype\":\"example\",\"parameters\":{\"additionalProperty\":\"example\"},\"qualityValue\":1,\"concrete\":true,\"wildcardType\":true,\"wildcardSubtype\":true,\"subtypeSuffix\":\"example\",\"charset\":\"example\"}],acceptLanguageAsLocales,[\"example\"],acceptPatch,[{\"type\":\"example\",\"subtype\":\"example\",\"parameters\":{\"additionalProperty\":\"example\"},\"qualityValue\":1,\"concrete\":true,\"wildcardType\":true,\"wildcardSubtype\":true,\"subtypeSuffix\":\"example\",\"charset\":\"example\"}],accessControlAllowCredentials,true,accessControlAllowHeaders,[\"example\"],accessControlAllowMethods,[\"example\"],accessControlAllowOrigin,example,accessControlExposeHeaders,[\"example\"],accessControlMaxAge,1,accessControlRequestHeaders,[\"example\"],accessControlRequestMethod,example,etag,example,ifMatch,[\"example\"],ifNoneMatch,[\"example\"],ifUnmodifiedSince,1,pragma,example,upgrade,example,vary,[\"example\"],connection,[\"example\"],ifModifiedSince,1,contentType,{\"type\":\"example\",\"subtype\":\"example\",\"parameters\":{\"additionalProperty\":\"example\"},\"qualityValue\":1,\"concrete\":true,\"wildcardType\":true,\"wildcardSubtype\":true,\"subtypeSuffix\":\"example\",\"charset\":\"example\"}") .build()
val response = client.newCall(request).execute()use reqwest;
#[tokio::main]pub async fn main() { let url = "http://127.0.0.1:58259/api/v1/auth/remote";
let mut headers = reqwest::header::HeaderMap::new(); headers.insert("headers", "empty,true,location,https://example.com,host,{\"address\":{\"address\":\"example\",\"hostAddress\":\"example\",\"linkLocalAddress\":true,\"hostName\":\"example\",\"multicastAddress\":true,\"anyLocalAddress\":true,\"loopbackAddress\":true,\"siteLocalAddress\":true,\"mcglobal\":true,\"mcnodeLocal\":true,\"mclinkLocal\":true,\"mcsiteLocal\":true,\"mcorgLocal\":true,\"canonicalHostName\":\"example\"},\"port\":1,\"hostName\":\"example\",\"hostString\":\"example\",\"unresolved\":true},all,{\"additionalProperty\":\"example\"},lastModified,1,date,1,contentLength,1,contentDisposition,{\"type\":\"example\",\"name\":\"example\",\"filename\":\"example\",\"charset\":\"example\",\"attachment\":true,\"formData\":true,\"inline\":true},acceptCharset,[\"example\"],contentLanguage,example,origin,example,range,[\"example\"],bearerAuth,example,cacheControl,example,expires,1,allow,[\"example\"],acceptLanguage,[{\"range\":\"example\",\"weight\":1}],basicAuth,example,accept,[{\"type\":\"example\",\"subtype\":\"example\",\"parameters\":{\"additionalProperty\":\"example\"},\"qualityValue\":1,\"concrete\":true,\"wildcardType\":true,\"wildcardSubtype\":true,\"subtypeSuffix\":\"example\",\"charset\":\"example\"}],acceptLanguageAsLocales,[\"example\"],acceptPatch,[{\"type\":\"example\",\"subtype\":\"example\",\"parameters\":{\"additionalProperty\":\"example\"},\"qualityValue\":1,\"concrete\":true,\"wildcardType\":true,\"wildcardSubtype\":true,\"subtypeSuffix\":\"example\",\"charset\":\"example\"}],accessControlAllowCredentials,true,accessControlAllowHeaders,[\"example\"],accessControlAllowMethods,[\"example\"],accessControlAllowOrigin,example,accessControlExposeHeaders,[\"example\"],accessControlMaxAge,1,accessControlRequestHeaders,[\"example\"],accessControlRequestMethod,example,etag,example,ifMatch,[\"example\"],ifNoneMatch,[\"example\"],ifUnmodifiedSince,1,pragma,example,upgrade,example,vary,[\"example\"],connection,[\"example\"],ifModifiedSince,1,contentType,{\"type\":\"example\",\"subtype\":\"example\",\"parameters\":{\"additionalProperty\":\"example\"},\"qualityValue\":1,\"concrete\":true,\"wildcardType\":true,\"wildcardSubtype\":true,\"subtypeSuffix\":\"example\",\"charset\":\"example\"}".parse().unwrap());
let client = reqwest::Client::new(); let response = client.get(url) .headers(headers) .send() .await;
let results = response.unwrap() .json::<serde_json::Value>() .await .unwrap();
dbg!(results);}curl --request GET \ --url http://127.0.0.1:58259/api/v1/auth/remote \ --header 'headers: empty,true,location,https://example.com,host,{"address":{"address":"example","hostAddress":"example","linkLocalAddress":true,"hostName":"example","multicastAddress":true,"anyLocalAddress":true,"loopbackAddress":true,"siteLocalAddress":true,"mcglobal":true,"mcnodeLocal":true,"mclinkLocal":true,"mcsiteLocal":true,"mcorgLocal":true,"canonicalHostName":"example"},"port":1,"hostName":"example","hostString":"example","unresolved":true},all,{"additionalProperty":"example"},lastModified,1,date,1,contentLength,1,contentDisposition,{"type":"example","name":"example","filename":"example","charset":"example","attachment":true,"formData":true,"inline":true},acceptCharset,["example"],contentLanguage,example,origin,example,range,["example"],bearerAuth,example,cacheControl,example,expires,1,allow,["example"],acceptLanguage,[{"range":"example","weight":1}],basicAuth,example,accept,[{"type":"example","subtype":"example","parameters":{"additionalProperty":"example"},"qualityValue":1,"concrete":true,"wildcardType":true,"wildcardSubtype":true,"subtypeSuffix":"example","charset":"example"}],acceptLanguageAsLocales,["example"],acceptPatch,[{"type":"example","subtype":"example","parameters":{"additionalProperty":"example"},"qualityValue":1,"concrete":true,"wildcardType":true,"wildcardSubtype":true,"subtypeSuffix":"example","charset":"example"}],accessControlAllowCredentials,true,accessControlAllowHeaders,["example"],accessControlAllowMethods,["example"],accessControlAllowOrigin,example,accessControlExposeHeaders,["example"],accessControlMaxAge,1,accessControlRequestHeaders,["example"],accessControlRequestMethod,example,etag,example,ifMatch,["example"],ifNoneMatch,["example"],ifUnmodifiedSince,1,pragma,example,upgrade,example,vary,["example"],connection,["example"],ifModifiedSince,1,contentType,{"type":"example","subtype":"example","parameters":{"additionalProperty":"example"},"qualityValue":1,"concrete":true,"wildcardType":true,"wildcardSubtype":true,"subtypeSuffix":"example","charset":"example"}'wget --quiet \ --method GET \ --header 'headers: empty,true,location,https://example.com,host,{"address":{"address":"example","hostAddress":"example","linkLocalAddress":true,"hostName":"example","multicastAddress":true,"anyLocalAddress":true,"loopbackAddress":true,"siteLocalAddress":true,"mcglobal":true,"mcnodeLocal":true,"mclinkLocal":true,"mcsiteLocal":true,"mcorgLocal":true,"canonicalHostName":"example"},"port":1,"hostName":"example","hostString":"example","unresolved":true},all,{"additionalProperty":"example"},lastModified,1,date,1,contentLength,1,contentDisposition,{"type":"example","name":"example","filename":"example","charset":"example","attachment":true,"formData":true,"inline":true},acceptCharset,["example"],contentLanguage,example,origin,example,range,["example"],bearerAuth,example,cacheControl,example,expires,1,allow,["example"],acceptLanguage,[{"range":"example","weight":1}],basicAuth,example,accept,[{"type":"example","subtype":"example","parameters":{"additionalProperty":"example"},"qualityValue":1,"concrete":true,"wildcardType":true,"wildcardSubtype":true,"subtypeSuffix":"example","charset":"example"}],acceptLanguageAsLocales,["example"],acceptPatch,[{"type":"example","subtype":"example","parameters":{"additionalProperty":"example"},"qualityValue":1,"concrete":true,"wildcardType":true,"wildcardSubtype":true,"subtypeSuffix":"example","charset":"example"}],accessControlAllowCredentials,true,accessControlAllowHeaders,["example"],accessControlAllowMethods,["example"],accessControlAllowOrigin,example,accessControlExposeHeaders,["example"],accessControlMaxAge,1,accessControlRequestHeaders,["example"],accessControlRequestMethod,example,etag,example,ifMatch,["example"],ifNoneMatch,["example"],ifUnmodifiedSince,1,pragma,example,upgrade,example,vary,["example"],connection,["example"],ifModifiedSince,1,contentType,{"type":"example","subtype":"example","parameters":{"additionalProperty":"example"},"qualityValue":1,"concrete":true,"wildcardType":true,"wildcardSubtype":true,"subtypeSuffix":"example","charset":"example"}' \ --output-document \ - http://127.0.0.1:58259/api/v1/auth/remoteAuthenticate a user using remote authentication headers.
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” headers
required
Authentication headers
object
empty
boolean
location
string format: uri
host
object
address
object
address
string format: byte
hostAddress
string
linkLocalAddress
boolean
hostName
string
multicastAddress
boolean
anyLocalAddress
boolean
loopbackAddress
boolean
siteLocalAddress
boolean
mcglobal
boolean
mcnodeLocal
boolean
mclinkLocal
boolean
mcsiteLocal
boolean
mcorgLocal
boolean
canonicalHostName
string
port
integer format: int32
hostName
string
hostString
string
unresolved
boolean
all
object
key
additional properties
string
lastModified
integer format: int64
date
integer format: int64
contentLength
integer format: int64
contentDisposition
object
type
string
name
string
filename
string
charset
string
attachment
boolean
formData
boolean
inline
boolean
acceptCharset
Array<string>
contentLanguage
string
origin
string
range
Array
bearerAuth
string
cacheControl
string
expires
integer format: int64
allow
Array
acceptLanguage
Array<object>
object
range
string
weight
number format: double
basicAuth
string
accept
Array<object>
object
type
string
subtype
string
parameters
object
key
additional properties
string
qualityValue
number format: double
concrete
boolean
wildcardType
boolean
wildcardSubtype
boolean
subtypeSuffix
string
charset
string
acceptLanguageAsLocales
Array<string>
acceptPatch
Array<object>
object
type
string
subtype
string
parameters
object
key
additional properties
string
qualityValue
number format: double
concrete
boolean
wildcardType
boolean
wildcardSubtype
boolean
subtypeSuffix
string
charset
string
accessControlAllowCredentials
boolean
accessControlAllowHeaders
Array<string>
accessControlAllowMethods
Array
accessControlAllowOrigin
string
accessControlExposeHeaders
Array<string>
accessControlMaxAge
integer format: int64
accessControlRequestHeaders
Array<string>
accessControlRequestMethod
etag
string
ifMatch
Array<string>
ifNoneMatch
Array<string>
ifUnmodifiedSince
integer format: int64
pragma
string
upgrade
string
vary
Array<string>
connection
Array<string>
ifModifiedSince
integer format: int64
contentType
object
type
string
subtype
string
parameters
object
key
additional properties
string
qualityValue
number format: double
concrete
boolean
wildcardType
boolean
wildcardSubtype
boolean
subtypeSuffix
string
charset
string
Responses
Section titled “ Responses ”User authenticated successfully
Media type */*
object
accessToken
string
refreshToken
string
expires
integer format: int64
isDefaultPassword
boolean
Remote authentication is disabled
Media type */*
object
accessToken
string
refreshToken
string
expires
integer format: int64
isDefaultPassword
boolean