News for hackers. Stuff that matters.
Re:Keycloak SSO with Docker Compose and Nginx by rjzzleep on Sunday February 11, 2024 @08:44AM (#39334939)
I've been eyeing authentik[1] and authelia[2].

Authelia looks really good to me, but the fact that keycloak has connectors for angular and you need to setup oidc angular plugins with authelia for example made me a little bit wary. But I guess having a config for Keycloak makes it's easier to get started.

[1] https://goauthentik.io/

[2] https://www.authelia.com/

Re:Keycloak SSO with Docker Compose and Nginx by c0wb0yc0d3r on Sunday February 11, 2024 @09:55AM (#39335371)
For anyone, considering authentik, I want to warn you by saying "here be dragons."

To start, I have protected 10+ services at any given time. Both in docker and k8s. Unless you enjoy configuring protection for each service independently, you'll have a bad time in authentik.

Authentik suffers from a debilitating bug[0] where when using a single config to protect all services on subdomains (i.e. app1.example.com, app2.example.com, etc.) your users will be randomly redirected to a different service when reauthenticating after the session expires.

[0]: https://github.com/goauthentik/authentik/issues/6886

Re:Keycloak SSO with Docker Compose and Nginx by BeryJu on Sunday February 11, 2024 @02:31PM (#39337805)
Hey, authentik CTO here!

We’ll be addressing the bug in the release after the next one (march-April)

Re:Keycloak SSO with Docker Compose and Nginx by c0wb0yc0d3r on Sunday February 11, 2024 @06:00PM (#39339674)
Good to hear, I think it'll make many users happy. For me, I've migrated back to Authelia. I moved to authentik because at the time Authelia had no user management. After all of authentik's sharp edges, I've found lldap[0], and was able to implement a pilot in a few hours. I haven't looked back, since everything was converted.

[0]: https://github.com/lldap/lldap

Re:Keycloak SSO with Docker Compose and Nginx by risson on Sunday February 11, 2024 @09:56AM (#39335372)
Authentik dev here, AMA
Re:Keycloak SSO with Docker Compose and Nginx by slenk on Sunday February 11, 2024 @02:21PM (#39337728)
I am trying to make the same decision right now. Authentik looked better to me but that bug mentioned in another reply sounds bad
Re:Keycloak SSO with Docker Compose and Nginx by kodama-lens on Sunday February 11, 2024 @03:27PM (#39338344)
Authentik has completely messed up their implementation of the oauth client credentials grant. It is not fixable without breaking changes and does not work with many tools using the cc grant.

After seeing this they were completely off the table for me.

https://github.com/goauthentik/authentik/issues/6139

Re:Keycloak SSO with Docker Compose and Nginx by BeryJu on Sunday February 11, 2024 @03:45PM (#39338513)
authentik CTO here; we’ll fix this in the next release (match-april), it should be possible in a non backwards incompatible way using the suggestion in this comment https://github.com/goauthentik/authentik/issues/6139#issueco... (which does call that solution a hack but I wouldn’t necessarily agree)
Re:Keycloak SSO with Docker Compose and Nginx by BeryJu on Sunday February 11, 2024 @05:08PM (#39339246)
See here for the fix, which both implements the workaround suggested in the issue and also a much more standard-compliant method: https://github.com/goauthentik/authentik/pull/8471
Re:Keycloak SSO with Docker Compose and Nginx by james_d_elliott on Monday February 12, 2024 @06:00AM (#39343583)
One of the Authelia principle maintainers here. If there's anything we can do to help with the configuration of Angular we'd be more than happy to via the GitHub discussions.