or does it only work with Ory Network?
# general
h
or does it only work with Ory Network?
s
also works with open source, but you will need hydra as the oauth2 server
h
ah oka, that's fine 🙂
so, @steep-lamp-91158 i have gotten a baseline hydra setup in my dev env with docker. i have managed to create client id & secret as per the docs of hydra. but what would my
ORY_SDK_URL
variable be since it's mapped to
issuer
then i guess it's the url for hydra. but reading the docs for
auth.js / nextAuth
where everything points to
{slug}.<http://projects.oryapis.com|projects.oryapis.com>
then I think that's the kratos url or is it because it's all listed under trhe same url but has a
/oauth2
for hydra and something else for kratos? I can't seem to add the 2 together.
or is that example purely for oauth2 / social links ? since I can see https://authjs.dev/getting-started/authentication/credentials hmmmge
s
please review https://www.ory.sh/docs/hydra/concepts/before-oauth2 in depth to make sure it's the right thing, you should not do this only for the ui
h
I get that, but doesn't exactly tell me what I need. :) But I want to return to the getting started article https://www.ory.sh/docs/getting-started/integrate-auth/auth-js It's Def just using oauth2/openID but it doesn't explain or show how it would work with kratos / hydra in an on-prem solution
m
Hey @hundreds-psychiatrist-38730 thanks for the feedback - would you mind creating an issue in github.com/ory/docs detailing what is missing from this guide to make it work for you? as for self-hosting instructions, you can select the Ory CLI tab in the code examples and that should work also for selfhosted hydra, so
ory create oauth2-client
becomes
hydra create oauth2-client
in the CLI and so on. and then instead of
https://{slug}.<http://projects.oryapis.com|projects.oryapis.com>
you use the endpoint of your kratos instance
h
Sure. I will Def create a issue for the docs :) It might become a ADHD "novel" 🙈 Regarding your 2nd part, I have created a hydra oauth token. But I wasn't aware about me using the kratos endpoint in my authjs oidc provider config, I was thinking it was the hydra endpoint. And that is also where my confusion is regarding ory network Everything is behind a proxy. So the slug endpoint directs to hydra, kratos etc in the cloud. :) I will try work on it when I get home from wok today. And also write that issue