Skip to content

Commit

Permalink
support hydra v2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac committed Jun 9, 2024
1 parent 1335968 commit addff8a
Show file tree
Hide file tree
Showing 70 changed files with 1,840 additions and 1,851 deletions.
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
ORY_HYDRA_VERSION ?= v1.11.10
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@v0.2.0
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: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@

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.
## 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 addff8a

Please sign in to comment.