Skip to content

Commit

Permalink
Support hydra v2.2.0 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac committed Jun 10, 2024
1 parent 1335968 commit 16435e6
Show file tree
Hide file tree
Showing 71 changed files with 1,844 additions and 1,854 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
FROM ghcr.io/hasura/ndc-rest:v0.2.0

ENV HASURA_CONFIGURATION_DIRECTORY /etc/connector
FROM ghcr.io/hasura/ndc-rest:v0.2.1

COPY ./config /etc/connector
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
NDC_REST_VERSION ?= v0.2.0
ORY_HYDRA_VERSION ?= v1.11.10
NDC_REST_VERSION ?= v0.2.1
ORY_HYDRA_VERSION ?= v2.2.0
UID ?= $(shell id -u)
GID ?= $(shell id -g)

.PHONY: build-schema
build-schema:
go install github.com/hasura/ndc-rest-schema@$(NDC_REST_VERSION)
go install github.com/hasura/ndc-rest-schema@latest
ndc-rest-schema convert \
-c schema/public/config.yaml \
-o config/schema-public.json
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@

Ory Hydra connector provides instant queries and mutations to request Ory Hydra API resources.

This connector is built upon the [NDC Rest](https://github.com/hasura/ndc-rest) with [Ory Hydra's REST API Specification](https://raw.githubusercontent.com/ory/hydra/v1.11.10/spec/swagger.json).
This connector is built upon the [NDC Rest](https://github.com/hasura/ndc-rest) with [Ory Hydra's REST API Specification](https://raw.githubusercontent.com/ory/hydra/master/internal/httpclient/api/openapi.yaml).

> [!NOTE]
> THe connector `v0.x` supports Hydra v1 API spec. Use `v1.x` or above if you want to use Hydra v2.
> The connector `v1.x` supports Hydra v2 API spec. Use `v0.x` if you want to use Hydra v1.
> [!NOTE]
> Support `client_secret_post` auth method for public APIs that require `client_credentials` credentials such as `/oauth2/*` only. The connector mainly supports admin API wrappers for Hasura Engine v3.
## Environment Variables

| Name | Description | Default Value |
| ------------------------------ | ------------------------------------------------------------- | --------------------- |
| HYDRA_PUBLIC_SERVER_URL | Public Hydra server URL | http://localhost:4444 |
| HYDRA_ADMIN_SERVER_URL | Admin Hydra server URL | http://localhost:4445 |
| HYDRA_PUBLIC_BASIC_TOKEN | Basic token for public Hydra server | |
| HYDRA_PUBLIC_TIMEOUT | Default request timeout for public APIs in seconds | 30 |
| HYDRA_PUBLIC_RETRY_TIMES | Number of retry times for public APIs | 0 |
| HYDRA_PUBLIC_RETRY_DELAY | Delay time between each retry in milliseconds for public APIs | 1000 |
Expand Down
Loading

0 comments on commit 16435e6

Please sign in to comment.