Get public Thunder VS Code OAuth configuration
curl --request GET \
--url https://api.thundercompute.com:8443/v1/auth/vscode/oauth-configimport requests
url = "https://api.thundercompute.com:8443/v1/auth/vscode/oauth-config"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.thundercompute.com:8443/v1/auth/vscode/oauth-config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8443",
CURLOPT_URL => "https://api.thundercompute.com:8443/v1/auth/vscode/oauth-config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.thundercompute.com:8443/v1/auth/vscode/oauth-config"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.thundercompute.com:8443/v1/auth/vscode/oauth-config")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.thundercompute.com:8443/v1/auth/vscode/oauth-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"authorization_url": "<string>",
"client_id": "<string>",
"redirect_uris": [
"<string>"
],
"resource": "<string>",
"revocation_url": "<string>",
"scopes": [
"<string>"
],
"token_url": "<string>"
}{
"code": 400,
"error": "invalid_request",
"message": "The request is malformed"
}auth
Get public Thunder VS Code OAuth configuration
Returns the public Connected App endpoints, client ID, scopes, and registered callback URIs used by the Thunder VS Code extension. No project secret is returned.
GET
/
auth
/
vscode
/
oauth-config
Get public Thunder VS Code OAuth configuration
curl --request GET \
--url https://api.thundercompute.com:8443/v1/auth/vscode/oauth-configimport requests
url = "https://api.thundercompute.com:8443/v1/auth/vscode/oauth-config"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.thundercompute.com:8443/v1/auth/vscode/oauth-config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8443",
CURLOPT_URL => "https://api.thundercompute.com:8443/v1/auth/vscode/oauth-config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.thundercompute.com:8443/v1/auth/vscode/oauth-config"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.thundercompute.com:8443/v1/auth/vscode/oauth-config")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.thundercompute.com:8443/v1/auth/vscode/oauth-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"authorization_url": "<string>",
"client_id": "<string>",
"redirect_uris": [
"<string>"
],
"resource": "<string>",
"revocation_url": "<string>",
"scopes": [
"<string>"
],
"token_url": "<string>"
}{
"code": 400,
"error": "invalid_request",
"message": "The request is malformed"
}Was this page helpful?