The public keys that verify an owner-connect token (JWKS, no key needed)
curl --request GET \
--url https://api.gridbeds.com/api/v1/distribution/owner-connect/keysimport requests
url = "https://api.gridbeds.com/api/v1/distribution/owner-connect/keys"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.gridbeds.com/api/v1/distribution/owner-connect/keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gridbeds.com/api/v1/distribution/owner-connect/keys",
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;
}{
"keys": [
{
"kty": "EC",
"crv": "P-256",
"x": "<string>",
"y": "<string>",
"kid": "<string>",
"alg": "ES256",
"use": "sig"
}
]
}{
"type": "https://api.gridbeds.com/problems/not-found",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "invalid_parameters",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"detail": "<string>"
}{
"type": "https://api.gridbeds.com/problems/not-found",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "invalid_parameters",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"detail": "<string>"
}Owner connect
The public keys that verify an owner-connect token (JWKS, no key needed)
Public and unauthenticated, limited per client address. Cache it as Cache-Control says and fetch it again when a token names a kid you do not hold.
The public keys that verify an owner-connect token (JWKS, no key needed)
curl --request GET \
--url https://api.gridbeds.com/api/v1/distribution/owner-connect/keysimport requests
url = "https://api.gridbeds.com/api/v1/distribution/owner-connect/keys"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.gridbeds.com/api/v1/distribution/owner-connect/keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gridbeds.com/api/v1/distribution/owner-connect/keys",
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;
}{
"keys": [
{
"kty": "EC",
"crv": "P-256",
"x": "<string>",
"y": "<string>",
"kid": "<string>",
"alg": "ES256",
"use": "sig"
}
]
}{
"type": "https://api.gridbeds.com/problems/not-found",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "invalid_parameters",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"detail": "<string>"
}{
"type": "https://api.gridbeds.com/problems/not-found",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "invalid_parameters",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"detail": "<string>"
}Preview. This operation is not served yet: it is part of the released contract (version 1.0.0). Build against a mock of the contract until the sandbox serves it; see Testing: mock and sandbox.
Răspuns
The key set.
RFC 7517. Every key is an EC P-256 public key for ES256.
Minimum array length:
1Show child attributes
Show child attributes