incalculable-king-68531
11/10/2023, 12:52 AMemail
and passwords
are saved into, and use that as the IDP?
◦ Or do I have to import all of those users into ORY ?
The main action I want to achieve is OpenID Connect - as a service.chilly-king-10285
11/10/2023, 12:53 AMchilly-king-10285
11/10/2023, 12:54 AMemail
and passwords
saved into it. You don't have to import all of those users into Ory. To customize Ory OAuth2 and OpenID Connect to work with your user database, you can follow the guide on [User login and consent flow](https://www.ory.sh/docs/oauth2-oidc/custom-login-consent/flow). This guide will walk you through the process of customizing Ory OAuth2 and OpenID Connect to work with your user database, login UI, and consent logic and UI. For running Ory Hydra against a SQL database, you can set the connection string as shown in the [Kubernetes Helm Chart](https://www.ory.sh/docs/hydra/self-hosted/kubernetes-helm-chart) documentation. Ory Hydra is OpenID certified and can be used as an OpenID Connect provider as mentioned in the [Compliance and certifications](https://www.ory.sh/docs/security-compliance/compliance-and-certifications) documentation. Please note that Ory Hydra is not an identity management system itself. It connects to your existing identity management system and is capable of issuing, in a secure and OpenID Certified manner, access, refresh, and ID tokens. I hope this helps! If you have any more questions, feel free to ask.incalculable-king-68531
11/13/2023, 10:12 PMchilly-king-10285
11/13/2023, 10:12 PMchilly-king-10285
11/13/2023, 10:13 PMbash bash <(curl <https://raw.githubusercontent.com/ory/meta/master/install.sh>) -d -b . hydra <version-you-want> ./hydra help
You may want to move Ory Hydra to your `$PATH`: bash sudo mv ./hydra /usr/local/bin/ hydra help
For macOS and Windows, you can follow the instructions provided in the [installation guide](https://www.ory.sh/docs/hydra/self-hosted/install). 2. Configure Ory Hydra: After installation, you need to configure Ory Hydra to connect to your existing SQL database. You can do this by creating a configuration file (hydra.yml
) and setting the DSN (Data Source Name) to your SQL database connection string. Here is an example: yaml dsn: <postgres://hydra:[email> protected]:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4 urls: self: issuer: <https://oauth2.example.com>
3. Apply Migrations: After setting up the configuration, you need to apply migrations to your SQL database. You can do this using the following command: bash /opt/hydra/bin/hydra -c /opt/hydra/config/hydra.yml migrate sql -y <postgres://hydra:[email> protected]:5432/hydra?sslmode=disable
4. Run Ory Hydra: Finally, you can run Ory Hydra using the serve
command: bash /opt/hydra/bin/hydra -c /opt/hydra/config/hydra.yml serve all
Please note that these steps are for a local setup and should not be used for production. For production, you should follow the [production guide](https://www.ory.sh/docs/hydra/self-hosted/deploy-hydra-example). I hope this helps! If you have any more questions, feel free to ask.