For Ory Session tokens you don’t need the proxy :s...
# ory-network
h
For Ory Session tokens you don’t need the proxy 🙂 Its more for cookies
a
At this point it's convenient because it means our backend can rely on the JWT token instead of needing to call Ory directly 🙂 And if the request goes through the proxy, the proxy will call Ory so if we call Ory again from the backend we double the requests we make
h
Ah I see! We’re planning on adding an endpoint for that very soon
Would that help?
a
That depends on what the endpoint is exactly 🙂 We are currently developing a feature that relies on our backend being able to authenticate Session Tokens (in addition to the Session Cookies). We currently rely on the Proxy to authenticate the user, which is great. But we're struggling with making it work with Session Tokens. I don't think this is a new functionality, the docs (https://www.ory.sh/docs/guides/cli/proxy-and-tunnel) mention
Ory Proxy translates known Ory credentials, such as Ory Session Tokens or Ory Session Cookies, to JSON Web Tokens.
but it's missing an example on how to make it work with Ory Session Token. We tried things that'd work with the
/whoami
call but didn't managed to make it work
Okay, it looks like everything is working properly, we were not calling the thing properly...