Hi! Fairly new to the project. Trying to play arou...
# talk-hydra
h
Hi! Fairly new to the project. Trying to play around with Hydra in Ory Cloud. Locally I can configure consent/login/logout URLs. Can I do this with Ory Cloud's Hydra, or is Kratos the only way to go?
w
Hey Nick! Yes, you can do that 🙂 This isn’t exposed in the Ory Console atm, but you can adjust that by getting the Ory OAuth2 & OpenID Connect config through the CLI, editing, and “pushing it back to the cloud”
try this:
Copy code
1. Download the Ory OAuth2 & OpenID Connect configuration of your project and save it to a `yaml` file:

   ```shell
   ## List all available projects
   ory list projects

   ## Get config
   ory get oauth2-config <project-id> --format yaml > config.yaml
2. Adjust the configuration in
oauth2/urls/consent
and `oauth2/urls/login`:
Copy code
yaml title="config.yaml"
   oauth2:
     # ...
     urls:
       # highlight-next-line
       consent: <http://localhost:3000/consent>
       error: /oauth2/fallbacks/error
       # highlight-next-line
       login: <http://localhost:3000/login>
       post_logout_redirect: /oauth2/fallbacks/logout
3. Update the project configuration using the file you worked with:
Copy code
shell
   ory update oauth2-config <project-id> --file config.yaml
   ```
you’re gonna need Ory CLI for this 😉 https://www.ory.sh/docs/guides/cli/installation
btw, for all Ory Network-related questions and discussions it’s best to post in #ory-network 🙂
h
Thanks! And will do