Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support hydra v2.2.0 #1

Merged
merged 2 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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