Skip to main content

hydra clients import

hydra clients import

Imports OAuth 2.0 Clients from one or more JSON files to the JSON Web Key Store

Synopsis

This command allows you to import OAuth 2.0 Clients from one or more JSON files to the JSON Web Key Store.

Currently supported formats are raw JSON Web Keys or PEM/DER encoded data. If the JSON Web Key Set exists already, the imported keys will be added to that set. Otherwise, a new set will be created.

Please be aware that importing a private key does not automatically import its public key as well.

Examples: hydra keys import my-set ./path/to/jwk.json ./path/to/jwk-2.json hydra keys import my-set ./path/to/rsa.key ./path/to/rsa.pub --default-key-id cae6b214-fb1e-4ebc-9019-95286a62eabc

hydra clients import <set> <file-1> [<file-2> [<file-3 [<...>]]] [flags]

Options

      --default-key-id string   A fallback value for keys without "kid" attribute to be stored with a common "kid", e.g. private/public keypairs
-h, --help help for import
--use string Sets the "use" value of the JSON Web Key if not "use" value was defined by the key itself (default "sig")

Options inherited from parent commands

      --access-token string    Set an access token to be used in the Authorization header, defaults to environment variable OAUTH2_ACCESS_TOKEN
--endpoint string Set the URL where Ory Hydra is hosted, defaults to environment variable HYDRA_ADMIN_URL. A unix socket can be set in the form unix:///path/to/socket
--fail-after duration Stop retrying after the specified duration (default 1m0s)
--fake-tls-termination Fake tls termination by adding "X-Forwarded-Proto: https" to http headers
--skip-tls-verify Foolishly accept TLS certificates signed by unknown certificate authorities

SEE ALSO