Skip to content

Commit

Permalink
support hydra v2 via ndc-rest v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac committed Jun 10, 2024
1 parent addff8a commit 340693c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 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,15 +1,15 @@
NDC_REST_VERSION ?= v0.2.0
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@v0.2.0
go install github.com/hasura/ndc-rest-schema@latest
ndc-rest-schema convert \
-c schema/public/config.yaml \
-o config/schema-public.json
/ndc-rest-schema convert \
ndc-rest-schema convert \
-c schema/admin/config.yaml \
-o config/schema-admin.json

Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ Ory Hydra connector provides instant queries and mutations to request Ory Hydra
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 `v1.x` supports Hydra v2 API spec. Use `v0.x` if you want to use Hydra v1.
> 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

Expand Down

0 comments on commit 340693c

Please sign in to comment.