fast-toothbrush-97571
06/11/2024, 2:43 PMchilly-king-10285
06/11/2024, 2:43 PMchilly-king-10285
06/11/2024, 2:44 PMselfservice
section of the configuration file. Here's an example: 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`: 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.