News for hackers. Stuff that matters.
Re:Show HN: Ory Kratos – Open-source identity server written... by baconfly on Thursday June 09, 2022 @07:38AM (#31679947)
One of the co-maintainers here. Ory Kratos has been in development since 2018 and is finally out of beta! If you have any questions about the project, tech, flows, or Ory as a whole I’m here to help :)
Re:Show HN: Ory Kratos – Open-source identity server written... by wharfjumper on Thursday June 09, 2022 @04:41PM (#31686575)
Congratulations on Kratos coming out of Beta.

We evaluated Ory a few months ago. My understanding:

1. Ory Kratos provides session-based authentication and user management.

2. Ory Hydra is a self-managed server that secures access to your applications and APIs with OAuth 2.0 and OpenID Connect.

Basically we want to replace AWS Cognito (which is pretty much abandonware) to secure our API so we needed both applications. Unfortunately we had to put our efforts on hold:

1. Bugs around traits meant we had issues around password change, password recovery and email change/reverifications for our use-case

2. Lack of documentation prevented us making progress on 2FA/WebAuthn

3. Bearer token/Oauth consent flow wasn't available without a lot of work because Kratos and Hydra are not "integrated" [1]. Someone shows how they rolled their own integration [2].

I'd love for someone to advise that we were wrong or misunderstood things or that things have moved on since then!

[1] https://github.com/ory/kratos/issues/273 [2] https://blog.px.dev/open-source-auth/

Re:Show HN: Ory Kratos – Open-source identity server written... by emurlin on Thursday June 09, 2022 @07:52PM (#31688417)
> 1. Ory Kratos provides session-based authentication and user management. > > 2. Ory Hydra is a self-managed server that secures access to your applications and APIs with OAuth 2.0 and OpenID Connect.

Sounds about right.

> 1. Bugs around traits meant we had issues around password change, password recovery and email change/reverifications for our use-case

Can't comment much on these as I haven't experienced those issues, but I'm curious to hear what the issues were.

> 2. Lack of documentation prevented us making progress on 2FA/WebAuthn

Things have moved on in the last months, and the 2FA/WebAuthn implementation seems more mature and documented.

> 3. Bearer token/Oauth consent flow wasn't available without a lot of work because Kratos and Hydra are not "integrated" [1]. Someone shows how they rolled their own integration [2].

That's right, sadly there's no 'integration' available officially. There've been at least two pull requests (I made one of them) to add Hydra integration to the official demo Kratos UI, which for different reasons weren't merged. I'm not sure I'd say it's so much work (essentially, it's getting the existing Kratos session and translating those into a Hydra session, with a couple of API calls), but it's not something very well documented (or at all) and you're left to figure it out by yourself from the API documentation. I hope that integration between the two is improved, at least with an official demo showcasing the calls needed in order and with the right parameters.

Re:Show HN: Ory Kratos – Open-source identity server written... by wharfjumper on Sunday June 12, 2022 @06:40PM (#31718944)
We experienced issues with the settings API not updating traits. Will try again now that things have moved on.

Regarding Kratos and Hydra is this[1] your PR?

[1]https://github.com/ory/kratos-selfservice-ui-node/pull/149

Re:Show HN: Ory Kratos – Open-source identity server written... by slx26 on Thursday June 09, 2022 @10:01AM (#31681232)
Hey, I've seen the project in the past and it's very interesting, and definitely an improvement over existing alternatives. That said, I have one complaint quite unrelated to tech itself: I think the liberal use of the term "identity" is very inappropriate. Of course "identity" is an extremely hard term to even define, but as far as I can see ory kratos is only assisting with email and phone verification. To talk about "identity" on that context seems very out of place to me. Maybe there's more that I've missed, and if that's the case I'm sorry. I understand words have more than one meaning, but there are big challenges to solve with regards to identity in the digital world that as far as I can see ory doesn't try to solve at all, and we end up spending time reading through the docs and trying to see if someone is making a meaningful contribution to the field for nothing. I know competitors use the term irresponsibly too, but... nevermind.

Sorry for the rant and what may sound like a very negative comment, I wrote this quickly. I think it would be great to right away stop using the term "identity" so freely and use something else, or at least clearly explain what do you understand for identity. I think it would be great for programmers to start disambiguating the concept, and I think projects like ory have a good opportunity (that you yourselves created and built, of course!) to make it a bit better.

Re:Show HN: Ory Kratos – Open-source identity server written... by harel on Saturday June 11, 2022 @04:32AM (#31702917)
I understand what you're saying here. I'm doing some looking-into identity as the concept of a verification that a person is who they say they are, not in the context of authentication but in the "real world". I've learned to read that word "identity" very loosely. As you said - it's very had to define.
Re:Show HN: Ory Kratos – Open-source identity server written... by unethical_ban on Tuesday June 14, 2022 @03:58PM (#31745215)
Hm. I agree with you: Identity is a user account or role. Verification is backing up the assertion of initial registration with phone, email, address, and so on.

Authentication is the verification of identity after registration.

Authorization is the verification of permission for an identity to take an action.

Re:Show HN: Ory Kratos – Open-source identity server written... by j0057 on Thursday June 09, 2022 @01:48PM (#31684430)
I usually understand "Identity" in the context of authentication and authorization to mean "who is the person or process trying to access the service", what do you think is inappropriate about this use of the word? Or another way to put it, from what should it be disambiguated?
Re:Show HN: Ory Kratos – Open-source identity server written... by slx26 on Thursday June 09, 2022 @02:00PM (#31684593)
A user account, an email or a phone number do not uniquely identify a person or process, and it doesn't tell you whether it's actually a person or a process.

Edit: "account" may not fully capture everything ory might be trying to do, but it's definitely closer than "identity".

Re:Show HN: Ory Kratos – Open-source identity server written... by gocsjess on Thursday June 09, 2022 @01:03PM (#31683790)
Is there an SSO for api/rpc just like how github cli (gh) did their auth (gh auth login)? I've been looking for simple tutorials on how to get started with a bunch of openid libraries, and still not sure how to get it working with ory. I didn't proceed spelunking github code and end up settling on session management.
Re:Show HN: Ory Kratos – Open-source identity server written... by PinguTS on Thursday June 09, 2022 @08:16AM (#31680238)
Is there an UI for the identity management like defining roles and assigning identities to roles?

I see the API part. But is there an UI part, besides the self-service account management?

Because that general management interface is the missing piece in many of the identity services.

Re:Show HN: Ory Kratos – Open-source identity server written... by baconfly on Thursday June 09, 2022 @08:47AM (#31680547)
The system is API only (headless) but we have reference implementations available. For a management UI you can use Ory Cloud :)

For permissions, that’s a different service: https://github.com/ory/keto

Re:Show HN: Ory Kratos – Open-source identity server written... by redconfetti on Thursday June 09, 2022 @10:08AM (#31681321)
It's nice to know there is an existing interface available, however one can drop it altogether and adopt an alternative, or create their own.
Re:Show HN: Ory Kratos – Open-source identity server written... by PinguTS on Thursday June 09, 2022 @09:22AM (#31680838)
Thank you for your answer.
Re:Show HN: Ory Kratos – Open-source identity server written... by claytongulick on Thursday June 09, 2022 @11:56AM (#31682812)
This was one of the primary reasons I ended up going with Keycloak, it's "batteries included" as far as UI goes.

UI for management, impersonation, configuration, etc... with RBAC, end-user UI for account preferences, profile, login, password reset, etc... all customizable/themeable.

With the switch to quarkus, is has a much more "single binary" feel and is very easy to deploy / configure.

Re:Show HN: Ory Kratos – Open-source identity server written... by donatzsky on Thursday June 09, 2022 @08:29AM (#31680337)
It's API only. The UI is for you to create.
Re:Show HN: Ory Kratos – Open-source identity server written... by nerdponx on Thursday June 09, 2022 @08:40AM (#31680452)
I wonder if "hosted Ory with a nice UI" is a viable SaaS business.
Re:Show HN: Ory Kratos – Open-source identity server written... by prisout64 on Thursday June 09, 2022 @09:21AM (#31680824)
way ahead of you: https://console.ory.sh/
Re:Show HN: Ory Kratos – Open-source identity server written... by longrod on Thursday June 09, 2022 @07:47AM (#31680007)
Would it be possible to migrate from IdentityServer4 & ASP.NET Identity Core? I currently have a SaaS running those 2 and would love to eventually migrate all users to Kratos.
Re:Show HN: Ory Kratos – Open-source identity server written... by baconfly on Thursday June 09, 2022 @07:50AM (#31680024)
Pretty sure! We have documentation on importing users and already support several hashing algorithms. Support for more algorithms will follow soon!
Re:Show HN: Ory Kratos – Open-source identity server written... by longrod on Thursday June 09, 2022 @07:54AM (#31680051)
Can you share the links if possible?
Re:Show HN: Ory Kratos – Open-source identity server written... by GiorgioG on Thursday June 09, 2022 @07:58AM (#31680087)
Re:Show HN: Ory Kratos – Open-source identity server written... by baconfly on Thursday June 09, 2022 @08:01AM (#31680115)
I also heard that there’s a blog post for migration coming, but it has to be translated from Japanese first. If you sign up to the newsletter you should receive a notice when it’s released :)
Re:Show HN: Ory Kratos – Open-source identity server written... by davedx on Thursday June 09, 2022 @02:34PM (#31685061)
Using it professionally at my current client, seems solid so far. Good work!
Re:Show HN: Ory Kratos – Open-source identity server written... by ownagefool on Thursday June 09, 2022 @03:31PM (#31685723)
We use hydra. Very interested in Kratos. Thanks for the contribution. :)