Get registry auth
curl --request GET \
--url http://localhost:9371/registries/{id}/authimport requests
url = "http://localhost:9371/registries/{id}/auth"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:9371/registries/{id}/auth', 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 => "9371",
CURLOPT_URL => "http://localhost:9371/registries/{id}/auth",
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 := "http://localhost:9371/registries/{id}/auth"
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("http://localhost:9371/registries/{id}/auth")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:9371/registries/{id}/auth")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"authType": "apiKey",
"tokenEndpoint": "<string>",
"headerName": "<string>",
"tokenExpiresAt": 123,
"availableScopes": [
{
"id": "<string>",
"description": "<string>"
}
],
"configuredScopes": [
"<string>"
]
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Get registry auth
Returns the currently configured auth for a registry together with the oauth2 scopes offered by its current well-known advertisement. The advertisement is fetched live; scopes are never cached.
GET
/
registries
/
{id}
/
auth
Get registry auth
curl --request GET \
--url http://localhost:9371/registries/{id}/authimport requests
url = "http://localhost:9371/registries/{id}/auth"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:9371/registries/{id}/auth', 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 => "9371",
CURLOPT_URL => "http://localhost:9371/registries/{id}/auth",
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 := "http://localhost:9371/registries/{id}/auth"
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("http://localhost:9371/registries/{id}/auth")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:9371/registries/{id}/auth")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"authType": "apiKey",
"tokenEndpoint": "<string>",
"headerName": "<string>",
"tokenExpiresAt": 123,
"availableScopes": [
{
"id": "<string>",
"description": "<string>"
}
],
"configuredScopes": [
"<string>"
]
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Path Parameters
Registry slug identifying the registry.
Minimum string length:
1Response
The registry auth configuration.
Current auth configuration for a registry and the oauth2 scopes its advertisement offers.
Available options:
apiKey, oauth2, null Scopes advertised by the registry's current well-known document when it advertises oauth2 auth, regardless of whether auth is configured; empty otherwise.
Show child attributes
Show child attributes
Scopes currently configured for the registry.
Last modified on August 25, 2026
Was this page helpful?