<@U04UQ68083H> can you provide a sample config for...
# ory-copilot
f
@chilly-king-10285 can you provide a sample config for hydra with kratos as identity provider
c
A message from kapa.ai
I'm sorry, but the provided knowledge sources do not contain a specific example of a configuration for Hydra with Kratos as the identity provider. However, they do contain separate examples of configurations for both Hydra and Kratos. For Kratos, there is an example of a configuration for social sign-in using OIDC:
Copy code
yaml selfservice:     methods:       oidc:         config:           providers:             - id: generic # this is `<provider-id>` in the Authorization callback URL. DO NOT CHANGE IT ONCE SET!               provider: generic               client_id: .... # Replace this with the Client ID               client_secret: .... # Replace this with the Client secret               issuer_url: <https://accounts.google.com> # Replace this with the providers issuer URL               mapper_url: "base64://{YOUR_BASE64_ENCODED_JSONNET_HERE}"               # Alternatively, use an URL:               # mapper_url: <https://storage.googleapis.com/abc-cde-prd/9cac9717f007808bf17>               scope:                 - email               # supported scopes can be found in your providers dev docs         enabled: true
(Source: [Ory Documentation](https://www.ory.sh/docs/self-hosted/kratos/configuration/oidc#example-configuration)) For Hydra, there is an example of how to use the JavaScript SDK:
Copy code
javascript import { Configuration, PublicApi, AdminApi } from "@ory/client"      const hydraPublic = new PublicApi(    new Configuration({    basePath: "<https://public.hydra:4444/>",    }),   )      const hydraAdmin = new AdminApi(    new Configuration({    basePath: "<https://public.hydra:4445/>",    }),   )
(Source: [Ory Documentation](https://www.ory.sh/docs/hydra/sdk/js)) Please note that these are separate configurations and may need to be adjusted to work together. For more detailed information, you may want to refer to the full Ory documentation.