Get JSON Web Key Set
curl --request GET \
--url https://{tenant_id}.hanko.io/.well-known/jwks.jsonimport requests
url = "https://{tenant_id}.hanko.io/.well-known/jwks.json"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{tenant_id}.hanko.io/.well-known/jwks.json', 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://{tenant_id}.hanko.io/.well-known/jwks.json",
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://{tenant_id}.hanko.io/.well-known/jwks.json"
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://{tenant_id}.hanko.io/.well-known/jwks.json")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant_id}.hanko.io/.well-known/jwks.json")
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{
"keys": [
{
"alg": "RS256",
"e": "AQAB",
"kid": "d6ff37d7-e3d1-4432-ab80-b64faf55ae36",
"kty": "RSA",
"n": "vPFRUCRoxN3RygdJHR3S5BV-DDLw6n-7oUXtX0nr7Twl...",
"use": "sig"
}
]
}{
"code": 500,
"message": "Internal Server Error"
}.well-known
Get JSON Web Key Set
Retrieve a JSON Web Key Set (JWKS) object containing the public keys used to verify
JSON Web Tokens (JWT) issued by the Hanko API and signed using the RS256 signing algorithm.
GET
/
.well-known
/
jwks.json
Get JSON Web Key Set
curl --request GET \
--url https://{tenant_id}.hanko.io/.well-known/jwks.jsonimport requests
url = "https://{tenant_id}.hanko.io/.well-known/jwks.json"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{tenant_id}.hanko.io/.well-known/jwks.json', 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://{tenant_id}.hanko.io/.well-known/jwks.json",
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://{tenant_id}.hanko.io/.well-known/jwks.json"
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://{tenant_id}.hanko.io/.well-known/jwks.json")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant_id}.hanko.io/.well-known/jwks.json")
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{
"keys": [
{
"alg": "RS256",
"e": "AQAB",
"kid": "d6ff37d7-e3d1-4432-ab80-b64faf55ae36",
"kty": "RSA",
"n": "vPFRUCRoxN3RygdJHR3S5BV-DDLw6n-7oUXtX0nr7Twl...",
"use": "sig"
}
]
}{
"code": 500,
"message": "Internal Server Error"
}Response
JSON Web Key Set
Show child attributes
Show child attributes
Was this page helpful?
⌘I