<@U04UQ68083H> where do i set the value for "oauth...
# ory-copilot
f
@chilly-king-10285 where do i set the value for "oauth2_provider.url" in kratos + hydra setup
c
A message from kapa.ai
In the Ory Kratos and Hydra setup, the value for "oauth2_provider.url" is typically set in the configuration file for the OIDC provider. For Kratos, you can set the OIDC provider details in the
selfservice
section of the configuration file. Here's an example:
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, the OAuth 2.0 flow can be performed with the following command where you can set the `--token-url`:
Copy code
bash --token-url <https://ory-hydra-example--hydra:4444/oauth2/token> \    --client-id facebook-photo-backup \    --client-secret some-secret \    --scope openid,offline,photos.read
(Source: [Ory Documentation](https://www.ory.sh/docs/hydra/self-hosted/configure-deploy#perform-oauth-20-flow)) Please replace the placeholders with your actual values.