Sha256: 4758bb7bea4f7a7cf48d4f62083dc5417988013a7c4c41029162252d4ae03cc6

Contents?: true

Size: 1.96 KB

Versions: 10

Compression:

Stored size: 1.96 KB

Contents

# OryClient::WellknownApi

All URIs are relative to *https://playground.projects.oryapis.com*

| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**discover_json_web_keys**](WellknownApi.md#discover_json_web_keys) | **GET** /.well-known/jwks.json | Discover Well-Known JSON Web Keys |


## discover_json_web_keys

> <JsonWebKeySet> discover_json_web_keys

Discover Well-Known JSON Web Keys

This endpoint returns JSON Web Keys required to verifying OpenID Connect ID Tokens and, if enabled, OAuth 2.0 JWT Access Tokens. This endpoint can be used with client libraries like [node-jwks-rsa](https://github.com/auth0/node-jwks-rsa) among others.  Adding custom keys requires first creating a keyset via the createJsonWebKeySet operation, and then configuring the webfinger.jwks.broadcast_keys configuration value to include the keyset name.

### Examples

```ruby
require 'time'
require 'ory-client'

api_instance = OryClient::WellknownApi.new

begin
  # Discover Well-Known JSON Web Keys
  result = api_instance.discover_json_web_keys
  p result
rescue OryClient::ApiError => e
  puts "Error when calling WellknownApi->discover_json_web_keys: #{e}"
end
```

#### Using the discover_json_web_keys_with_http_info variant

This returns an Array which contains the response data, status code and headers.

> <Array(<JsonWebKeySet>, Integer, Hash)> discover_json_web_keys_with_http_info

```ruby
begin
  # Discover Well-Known JSON Web Keys
  data, status_code, headers = api_instance.discover_json_web_keys_with_http_info
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <JsonWebKeySet>
rescue OryClient::ApiError => e
  puts "Error when calling WellknownApi->discover_json_web_keys_with_http_info: #{e}"
end
```

### Parameters

This endpoint does not need any parameter.

### Return type

[**JsonWebKeySet**](JsonWebKeySet.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ory-client-1.16.2 docs/WellknownApi.md
ory-client-1.16.1 docs/WellknownApi.md
ory-client-1.16.0 docs/WellknownApi.md
ory-client-1.15.17 docs/WellknownApi.md
ory-client-1.15.16 docs/WellknownApi.md
ory-client-1.15.15 docs/WellknownApi.md
ory-client-1.15.14 docs/WellknownApi.md
ory-client-1.15.13 docs/WellknownApi.md
ory-client-1.15.12 docs/WellknownApi.md
ory-client-1.15.10 docs/WellknownApi.md