Is there a way to authenticate with Ory CLI withou...
# ory-network
r
Is there a way to authenticate with Ory CLI without having to go through the interactive prompt? We'd like to automate the authentication when running Ory Tunnel as a background process in a dockerized application e.g.
Copy code
ory auth
ory tunnel <http://app.local:4000> <http://app.local:4010> --dev --port 4010 &
bin/rails s -b 0.0.0.0 -p 4000
h
We have it on the roadmap to add other ways of authentication but unfortunately not yet. What you can do though is to sign in locally, copy the config file, and paste it into the container. Just be careful that this gives unrestricted access to your account.
Also, the ory tunnel, if you start it with
--quiet
won’t prompt for user login, but it also means that social sign in will not work through the tunnel.
r
Thanks. Where can I find the config file after signing-in locally?
h
i think its in your home directory
.ory-cloud.yml
gratitude thank you 1