rough-ghost-22302
07/23/2023, 3:39 PMrough-ghost-22302
07/23/2023, 3:40 PMproud-plumber-24205
07/24/2023, 8:14 AMIn my specific case I have a Go API that validates the authentication via a middleware, but given that it’s an API it doesn’t do the redirect.The Ory tunnel should still work with
application/json
content-type and browser redirects.
For testing environments such as staging, you could always add another domain to your project for easy deployment. Or just deploy the ory tunnel alongside your application.rough-ghost-22302
07/24/2023, 8:23 AMlimited-photographer-61008
07/24/2023, 12:40 PMrough-ghost-22302
07/24/2023, 12:41 PMrough-ghost-22302
07/30/2023, 6:27 PMory tunnel --dev --project <http://peaceful-galois-l0mgoomxk2.projects.oryapis.com|peaceful-galois-l0mgoomxk2.projects.oryapis.com> <http://localhost:3000>
To access Ory's APIs, use URL
<http://localhost:4000>
and configure your SDKs to point to it, for example in JavaScript:
import { V0alpha2Api, Configuration } from '@ory/client'
const ory = new V0alpha2Api(new Configuration({
basePath: '<http://localhost:4000>',
baseOptions: {
withCredentials: true
}
}))
2023/07/30 19:24:07 http: proxy error: remote error: tls: handshake failure
2023/07/30 19:24:08 http: proxy error: remote error: tls: handshake failure
2023/07/30 19:24:09 http: proxy error: remote error: tls: handshake failure
2023/07/30 19:24:18 http: proxy error: remote error: tls: handshake failure
2023/07/30 19:24:20 http: proxy error: remote error: tls: handshake failure
2023/07/30 19:24:28 http: proxy error: remote error: tls: handshake failure
rough-ghost-22302
07/30/2023, 6:28 PM<http://localhost:4000>
and I see the TLS error in the browser as well as in the logsrough-ghost-22302
07/30/2023, 6:28 PMory version
Version: v0.2.2
Git Hash: 3ef9cd5f54d31fdc8da9ea3d9bfa1cfefb6f098d
Build Time: 2023-01-26T09:52:48Z
proud-plumber-24205
07/31/2023, 7:14 AM<https://localhost:4000>
instead of http://...
. Could you just make sure that the URL is a non-https url?rough-ghost-22302
07/31/2023, 9:23 AM➜ ~ curl -I <http://localhost:4000>
HTTP/1.1 502 Bad Gateway
Strict-Transport-Security: max-age=0;
Vary: Origin
Date: Mon, 31 Jul 2023 09:22:11 GMT
➜ ~ curl -I <http://localhost:4000/self-service/login/browser>
HTTP/1.1 502 Bad Gateway
Strict-Transport-Security: max-age=0;
Vary: Origin
Date: Mon, 31 Jul 2023 09:22:39 GMT
➜ ~
rough-ghost-22302
07/31/2023, 9:23 AMproud-plumber-24205
07/31/2023, 1:06 PMproject
value is incorrect 😅
It should just be the slug. Not the full URLproud-plumber-24205
07/31/2023, 1:06 PM-- ory tunnel --dev --project <http://peaceful-galois-l0mgoomxk2.projects.oryapis.com|peaceful-galois-l0mgoomxk2.projects.oryapis.com> <http://localhost:3000>
++ ory tunnel --dev --project peaceful-galois-l0mgoomxk2 <http://localhost:3000>