All URIs are relative to https://api.clerk.com/v1
Method | HTTP request | Description |
---|---|---|
get_jwks | GET /jwks | Retrieve the JSON Web Key Set of the instance |
get_jwks
Retrieve the JSON Web Key Set of the instance
Retrieve the JSON Web Key Set of the instance
require 'time'
require 'clerk-sdk-ruby-backend'
# setup authorization
ClerkBackend.configure do |config|
# Configure Bearer authorization (sk_<environment>_<secret value>): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = ClerkBackend::JWKSApi.new
begin
# Retrieve the JSON Web Key Set of the instance
result = api_instance.get_jwks
p result
rescue ClerkBackend::ApiError => e
puts "Error when calling JWKSApi->get_jwks: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_jwks_with_http_info
begin
# Retrieve the JSON Web Key Set of the instance
data, status_code, headers = api_instance.get_jwks_with_http_info
p status_code # => 2xx
p headers # => { ... }
p data # => <WellKnownJWKS>
rescue ClerkBackend::ApiError => e
puts "Error when calling JWKSApi->get_jwks_with_http_info: #{e}"
end
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json