Get the JSON Web Key Set used to verify tokens
1 min
code examples curl request get \\ \ url https //api upstartcommerce com/ well known/jwks json \\ \ header 'accept application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //api upstartcommerce com/ well known/jwks json", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api upstartcommerce com/ well known/jwks json") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //api upstartcommerce com/ well known/jwks json" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // the key set currently valid for verification { "keys" \[ { "kty" "rsa", "kid" "auth svc 2026 01", "use" "sig", "alg" "rs256", "n" "", "e" "aqab" } ] }// no signing key is available only occurs if the service is configured with a symmetric algorithm, which cannot expose a public key { "error" "unauthorized", "message" "invalid username or password", "code" "unauthorized" }