fast-toothbrush-97571
06/10/2024, 12:34 PMchilly-king-10285
06/10/2024, 12:34 PMchilly-king-10285
06/10/2024, 12:35 PMyaml 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: 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.